Marcus Huewe
e90a60a8c8
Merge branch 'livebuild' of https://github.com/jblunck/osc
2014-07-16 10:51:06 +02:00
Marcus Huewe
ea349d9ad0
- do_buildinfo: fixed "osc buildinfo -p <path>"
2014-07-15 20:38:19 +02:00
f8a1fa2ebc
- give a better hint to the user, when a search role is not defined
2014-07-10 09:50:52 +02:00
Jan Blunck
475d2a298d
Add support for livebuild buildtype
...
This commit allows for 'osc build' to do local builds of type livebuild.
Debian livebuild is the native Debian live image building system.
Signed-off-by: Jan Blunck <jblunck@infradead.org>
2014-07-08 21:18:01 +02:00
Marcus Huewe
d86e28744f
- parse_repoarchdescr: allow an unsupported arch during the guessing phase
...
This makes the error message in some cases more precise (for instance
"osc build openSUSE_13.21 x86_641")
2014-07-02 23:56:34 +02:00
Marcus Huewe
e662fd815b
- parse_repoarchdescr: improved yet another error message
2014-07-02 23:13:42 +02:00
Marcus Huewe
a8d0b948af
- parse_repoarchdescr: improved error messages a bit
...
Moved reading/writing of .osc/_build_repositories into the Repo class.
2014-07-02 22:07:01 +02:00
Marcus Huewe
a754164067
- use HTTPError.hdrs instead of HTTPError.headers
...
There are situations where a HTTPError instance has no headers
attribute.
2014-06-08 21:33:06 +02:00
Marcus Huewe
444a503bca
- fixed #89 ("osc commit fails with do_package_tracking = 0")
2014-06-04 16:17:06 +02:00
Marcus Huewe
a833120ebd
do_updatepacmetafromspec: added "updatepkgmetafromspec" alias
2014-05-22 13:01:44 +02:00
7f21679413
- do not forward requests if accept fails (issue 91)
2014-05-21 15:45:07 +02:00
Marcus Huewe
c873252d70
- do_build: do not suppress --download-api-only option
...
Or was there a particular reason for not displaying this option in
"osc build -h"?
2014-05-15 17:48:11 +02:00
3e7f355a0a
- show errors when request change failed
2014-05-15 18:09:47 +02:00
Marcus Huewe
38fbe8fb11
- do_maintainer: introduced setBugownerHelper method
...
Do not swallow urllib2.HTTPError exceptions with code != 403
2014-05-08 16:07:42 +02:00
Marcus Huewe
87fc39fee4
- do_maintainer: do not set bugowner/create bugowner request action twice
2014-05-08 15:41:15 +02:00
Marcus Huewe
47af622031
- do_maintainer: fixed typo (that cause a TypeError)
2014-05-08 15:26:29 +02:00
Marcus Huewe
474dcf6843
- handle ImportError of a plugin more gracefully
...
See bnc#876538 for the details.
2014-05-06 18:51:12 +02:00
Marcus Huewe
5e22cd3f4f
- do_submitrequest: use continue to start next loop iteration (instead of "next"...)
2014-04-28 15:09:29 +02:00
Marcus Huewe
d243241b1c
- added support for "osc requestmaintainership PROJECT" (if cwd is no package wc)
2014-03-12 16:41:46 +01:00
Marcus Huewe
c66a75018e
- do_submitrequest: consider the "--yes" option if the wc has local modifications
2014-03-12 10:50:46 +01:00
714de8519c
- support release --set-release option
2014-03-05 16:03:23 +01:00
46b8f2613f
- fix --no-checks description
2014-03-04 09:12:26 +01:00
Marcus Huewe
8b058b3a47
- do_setlinkrev, set_link_rev: fixed #72
...
Also refactored set_link_rev code a bit so that the new _set_link_rev
function could be used by link_pac in the future.
2014-03-03 22:44:30 +01:00
Scott Bahling
a33c40eb53
Fix handling of meta command within local working directory
...
* Fix osc ignoring -A apiurl command option when arguments are
less than 2 and executed within local working copy
* Enhance handling of meta command within local working copy.
- meta prj: Try to use project and apiurl of local working copy
if no arguments are passed
- meta pkg: Try to use project and apiurl of local working copy
if one argument is passed (single argument assumed to be package
name), and try to use project, package and apiurl if no
arguments are passed
2014-02-27 16:45:44 +01:00
c4f0397b0f
Takes care when the commit is in project level
2014-02-27 16:45:44 +01:00
014551e786
Move the user interaction for linked package into commandline.py
2014-02-27 16:45:44 +01:00
Ludwig Nussel
955c46495b
replace sys.exit(0) to avoid backtrace
2014-02-27 08:39:54 +01:00
Marcus Huewe
87e24c3aa6
- do_commit: added --no-message option
...
Commit without specifying a log comment. Fixes #73 .
2014-02-12 14:52:39 +01:00
Sascha Peilicke
3c0dbaba7f
Add flag '--noverify' next to '--no-verify'
...
Align with other '--no$bla' flags. Note that the alternative is added
after '--no-verify', optparse uses the first arg for the stored config
variable.
2014-02-12 12:26:59 +01:00
Marcus Huewe
b5d47ebd8c
- do_maintainer: fixed support for groups
...
Ideally, the whole method will be refactored one day...
2014-02-11 11:56:44 +01:00
Marcus Huewe
49ed086d0b
- do_vc: added a --file <filename> option
...
Can be used to read changes from <filename>.
2014-02-05 17:50:31 +01:00
98a625e89e
- show also error details on request accept error
2014-02-04 14:35:30 +01:00
e1007e1bd8
- show api error on failure of request/review accept
2014-01-30 11:52:24 +01:00
0557fecd02
- support bugowner set of groups
2014-01-24 17:01:35 +01:00
7fcb1bbe3e
- fix set bugowner command
2014-01-24 10:29:00 +01:00
Marcus Huewe
cf35fb441f
- do_request: support float values for --days (affects list)
2014-01-14 11:04:04 +01:00
Marcus Huewe
edd199af3b
- _load_plugins: handle NameError more gracefully
2014-01-10 15:58:33 +01:00
Vitezslav Cizek
f85c76bd42
correctly specify --delete option when using rsync
2014-01-08 15:18:02 +01:00
Michal Čihař
e9793df634
Fixed typo in authentication
2013-12-09 19:26:15 +01:00
f202fbd111
add option for deleterequests using auto-accept
2013-12-05 10:23:53 +01:00
Sascha Peilicke
89eb129e4d
Same output as "osc branch" for mbranch command
...
Users can just copy-paste the "osc co ..." command in their shell and be
more productive.
2013-11-18 13:48:09 +01:00
Marcus Huewe
73048d1159
- yet another fix for the previous commit
2013-11-15 11:42:58 +01:00
Marcus Huewe
b2493a25ae
- fix for 6a36b5180a
...
It is ridiculous that we have duplicated code for "osc sr" and
"osc createrequest"...
2013-11-15 11:39:21 +01:00
Marcus Huewe
6a36b5180a
- do_submitrequest: automatically supersede existing requests if "--yes" was specified
...
Fixes #58
2013-11-15 11:13:27 +01:00
a7ea5043ae
- allow also to execute a token with a registered service
2013-11-13 18:23:44 +01:00
63e1124c09
- add support to handle authentification token support
2013-10-31 09:12:17 +01:00
67802e6a41
- support restartbuild and abortbuild
...
small refactoring but keep api compability
2013-10-28 18:30:32 +01:00
Sascha Peilicke
43499172af
Kill Danny's awesome english
2013-10-28 10:21:21 +01:00
Sascha Peilicke
569e89fede
Add --unset parameter to setdevelproject
...
Allows to unset the devel project (much like setlinkrev -u).
2013-10-18 11:50:07 +02:00
Sascha Peilicke
3d72e60321
Improve devel project commands.
...
Let "osc develproject" (with new alias "dp") display the devel package
if it doesn't match the package name. Deprecate "--raw" option which
only was a crude workaround for that anyway.
Add "osc setdevelproject" (alias "sdp") command to change a package's
devel project / package.
2013-10-07 14:31:50 +02:00
Marcus Huewe
7f1d7f6258
- do_request: added --no-devel option in order to disable the forwarding to the devel project (if the request is accepted)
...
Original patch by "Dominique Leuenberger a.k.a. Dimstar" <dimstar@opensuse.org>
(I just renamed the option from "--nodevel" to "--no-devel").
2013-09-25 15:36:54 +02:00
38edcb605f
- drop double read(), the copy_pac method is doing that already and python 2.6 is crashing here
2013-09-17 16:39:23 +02:00
Marcus Huewe
bf2e372c30
- added new "osc clean" command
...
"osc clean" removes all untracked files from a package working
copy.
2013-09-12 16:14:14 +02:00
aef9f7e6d2
- _sslcert is stored in meta space
2013-09-05 14:54:15 +02:00
edda98eaff
- add signkey --sslcert option to fetch the optional create ssl certificate instead of gpg key
2013-08-30 09:41:13 +02:00
Marcus Huewe
c78da6c496
- _load_plugins: also add imported modules to the class
...
This is needed for backward compatibility. New plugins
(which do not care about "old" osc versions) should not
use "self.<imported modname>.<something>" anymore
to refer to the imported module. Instead use
"<imported modname>.<something>" (this will only work with
osc > 0.140.1).
2013-08-15 17:26:07 +02:00
6461c9faf0
add --last parameter for build logs to show last finished log file, if currently building
2013-08-13 10:38:43 +02:00
Marcus Huewe
67a0671c8a
- _load_plugins: follow-up fix for commit 58d716a6f7
...
Only add functions to the Osc class which are defined in the _current_
module.
2013-07-23 12:10:31 +02:00
41adda44f6
- add support for manual release of sources with binaries (FATE #315250 )
2013-07-08 15:59:14 +02:00
Marcus Huewe
58d716a6f7
- _load_plugins: add all functions from the plugin to the Osc class
...
Adding only functions which starts with "do_" breaks the old
behavior.
2013-06-26 10:18:14 +02:00
Marcus Huewe
4996b1d1ac
- do_copypac: fixed help text of the --revision option (as suggested by darix)
...
It "copies" the specified revision instead of "linking" it.
2013-06-21 15:11:20 +02:00
Marcus Huewe
58532bbac7
- small fix for commit d338254bb7
...
catch HTTPError instead of TypeError
2013-06-17 17:37:40 +02:00
Sascha Peilicke
d338254bb7
Display meaningful message for queries w/o project
...
Like: osc rq list -U $USER -t change_devel
2013-06-17 16:26:00 +02:00
Sascha Peilicke
4007800880
Catch specific exception. Catch-all is calling for error
2013-06-17 16:21:32 +02:00
Marcus Huewe
b6c9505274
- reworked the plugin loading mechanism
...
Using the "old" exec approach isn't possible anymore because it'll break all
plugins which aren't compatible with python3 (for instance the usage of
python2's "print" statement will lead to an error). In order to circumvent
this problem we do the following:
- import the plugin/module
- update the module's global symbol table with the "globals()" of the
commandline module
- bind the module's "do_*" functions to the "Osc" class
This basically mimics the old "exec" semantics.
2013-06-13 20:10:12 +02:00
Juergen Weigert
4b48cc611f
fixed plugin crash message: include the plugin name
...
Two occurences.
2013-06-06 12:36:48 +02:00
Juergen Weigert
c7a15b9dab
fixed plugin crash message: include the plugin name
2013-06-06 11:55:50 +02:00
Danny Al-Gaaf
ca306fbb29
commandline.py: remove some unnecessary pass statements
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 13:42:28 +02:00
Danny Al-Gaaf
42b8d5ff45
commandline.py: fix "More than one statement on a single line"
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 13:38:49 +02:00
Danny Al-Gaaf
c261a80d46
commandline.py: remove comma, causing trouble
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 13:06:01 +02:00
Danny Al-Gaaf
00e3932e43
commandline.py: wrap some really long lines
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 13:03:46 +02:00
Danny Al-Gaaf
8403c92059
commandline.py: add missing spaces
...
Add missing spaces around operators, add missing spaces after comma.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 12:41:50 +02:00
Danny Al-Gaaf
439e03501d
commandline.py: remove unnecessary semicolon
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 12:18:43 +02:00
Danny Al-Gaaf
e1b8022ca0
commandline.py: fix bad indentation
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 12:16:44 +02:00
eea716f11f
- support listing of deleted source files "ls -D $PROJECT $PACKAGE"
2013-05-17 10:37:51 +02:00
Michal Čihař
f2a1bde695
Fix typo in help
2013-05-07 09:29:59 +02:00
954c2fc2b2
- fix request ... --or-revoke command for automated request accept/revoking
2013-05-06 18:45:51 +02:00
Marcus Huewe
69150040c2
- do_submitrequest: --diff is not supported in a project working copy
...
This (partly) fixes issue #29 .
2013-05-02 22:18:14 +02:00
90d51da3d2
- add --message option for creating set_bugowner requests
2013-05-02 11:38:53 +02:00
71c40acc51
- fix using --set-bugowner-request on explicit specified containers
2013-05-02 11:08:27 +02:00
69e6e586c7
- fix print syntax
2013-05-02 11:05:48 +02:00
ce998fbc29
- fix spelling typo
2013-05-02 10:57:15 +02:00
a8f14bed60
- allow to set bugowner/maintainership for a given binary
2013-05-02 10:50:05 +02:00
Marcus Huewe
cdc1245960
- pass a str to exec() instead of an open file object
...
An open file object isn't supported anymore by python3.
This fixes issue #26 .
2013-04-30 17:44:38 +02:00
9595aa9f09
- show also groups in maintainer/bugowner search
2013-04-22 17:09:33 +02:00
2b06180efa
- anotehr python3 syntax fix
2013-04-16 15:57:30 +02:00
e1291fdcc6
- fix the general architecture detection for incomplete "osc build" lines
2013-04-16 15:42:37 +02:00
b99233e3ae
- hostarch is an array :/
2013-04-16 15:24:28 +02:00
ce04f8b9bb
- fix syntax to satisfy testsuite
2013-04-16 11:01:56 +02:00
Michal Vyskocil
b787ca2b39
python3 compatibility: make all unit test pass
...
There are many places can't be covered by 2to3, especially the
str/unicode -> str/bytes change done in python3. This is a big patch
incorporating all changes made in order to make python3 suite.py run
without any single failure.
It
* adapt the introspect_handler_3 for case there are no __defaults__
* adds the ET_ENCODING variable for ET.fromstring ("unicode" in py3,
"utf-8" in py2)
* (re)adds various builtins to both python versions
- memoryview to python 2.6
- bytes compatible with py3 to 2.6 and 2.7
and it changes few parts of tests/common.py in order to be compatible
with python3
* new urlcompare method compares all components or url + parsed query
string in a dictionary, so the ordering, neither quoting does not matter
* bytes builtin has been added to 2.x and used in assertEqualMultiline
2013-04-16 10:51:42 +02:00
Michal Vyskocil
f0186dbde8
python3 compatibility: fix all tests
2013-04-16 10:51:42 +02:00
Michal Vyskocil
419367fca3
python3 compatibility: urllib
...
fixes all renames in urllib, urllib2, urlparse modules in python3
2013-04-16 10:51:42 +02:00
Michal Vyskocil
7f2031558c
python3 compatibility: print function
...
The most visible change in python3 - removal of print statement and all
the crufty
print >> sys.stderr, foo,
The from __future__ import print_function makes it available in python
2.6
2013-04-16 10:51:41 +02:00
Michal Vyskocil
0dcbddbafe
python3 compatibility: new syntax for literals
...
The octal literals got a new syntax 0755 -> 0o755
2013-04-16 10:51:18 +02:00
Michal Vyskocil
87d354e1a0
python3 compatibility: import proper modules
...
Some modules (httplib, StringIO, ...) were renamed in python3. This
patch try to import the proper symbols from python3 and then fallback to
python2 in a case ImportError will appear.
There is one exception, python 2.7 got the io module with StringIO, but
it allow unicode arguments only. Therefor the old module is poked before
new one.
2013-04-16 10:51:18 +02:00
Michal Vyskocil
c612e8d47e
python3 compatibility: use relative imports
...
Use relative imports when using module's own modules - this makes a
clear distinction between already developed copy and installed package.
2013-04-16 10:51:18 +02:00
Michal Vyskocil
2ad4a8c873
python3 compatibility: has_key
...
don't use method removed from python3
2013-04-16 10:51:17 +02:00
Michal Vyskocil
19f689ce0b
python3 compatibility: getcwdu
...
used just on one place, seems to be enough to simply remove it
2013-04-16 10:51:17 +02:00
Michal Vyskocil
600a565428
python 3 compatibility: exec
...
exec is no longer a statement
2013-04-16 10:51:17 +02:00
Michal Vyskocil
3a93ac6d10
python3 compatibility: except
...
changes 'except FooError, fe' to 'except FooError as fe'
available in python 2.6
2013-04-16 10:51:17 +02:00