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
Michal Vyskocil
d3648be24b
python3 compatibility: dict
...
this patch
1.) removes the iteritems/itervalues, which were dropped in py3
items/values are used instead
2.) add an extra list() in a cases the list-based access is needed
(included appending, indexing and so)
3.) changes a sorting idiom in few places
instead of
foo = dict.keys()
foo.sort()
for i in foo:
there is a recommended
for i in sorted(dict.keys()):
4.) in one occassion it removes a if dict.has_key() by simpler
dict.get(key, default)
2013-04-16 10:51:17 +02:00
b8faeeddb4
- fix build on ppc/s390/ia64 (bnc#815296)
2013-04-16 09:04:34 +02:00
Marcus Huewe
9e6e76c712
- do_localbuild: made "arch" argument optional
2013-03-25 20:28:27 +01:00
Marcus Huewe
03b8cba2af
- fixed bnc#807621
...
Bug summary: "osc: when forwarding a request, previous request is
not superseded automatically"
2013-03-08 19:06:04 +01:00
Marcus Huewe
93df866787
- added new function core.run_external which can be used to execute an external program
...
Basically it's just a wrapper around subprocess.call which raises an ExtRuntimeError
exception if subprocess.call raised an OSError with errno set to ENOENT (unfortunately
the OSError's filename attribute is set to None therefore we cannot print a meaningful
error message (that's why an ExtRuntimeError is raised)).
Replaced all occurrences of subprocess.call with a corresponding run_external call.
2013-03-08 00:56:57 +01:00
6d7de62755
- explain the "osc maintainer" command a bit more extensive
2013-03-06 11:49:54 +01:00
Marcus Huewe
b228fc3c98
- do_service: fixed typo in command description
...
Thanks to Richard Bos <rbos@opensuse.org> for spotting this.
2013-03-02 15:27:20 +01:00
6e42a61076
- add a accept-or-revoke function for requests. useful for mass automatisation of processing stuck requests.
2013-02-28 10:32:29 +01:00
Marcus Huewe
45e49905ce
- do_mv: minor cosmetic changes
2013-02-28 00:30:05 +01:00
Bogdano Arendartchuk
1d3805f30e
Allow using directories as mv targets
...
Otherwise osc would crash because the target directory would be in use (in
case of ".".)
2013-02-27 18:40:59 -03:00
e5189178a1
- create multiple-submit requests with revision numbers
2013-02-25 15:22:00 +01:00
3e88c3ce32
- fallback to set_bugowner request when writing to specified container is not permitted
2013-02-21 12:10:02 +01:00
14f6986331
- use server side default when searching the container for setting a bugowner.
2013-02-21 07:26:59 +01:00
220ec0e2cf
"maintainer --user" support to search for all official maintained instance for given user or group
2013-02-20 11:41:29 +01:00
Marcus Huewe
f0d1acf8d4
- removed debug output
2013-02-14 15:39:57 +01:00
Marcus Huewe
920028524b
- fixed UnboundLocalError when creating a submitrequest from a project wc
...
The error occured if no target project was specified by the user.
2013-02-14 15:36:04 +01:00
55ee5763b0
- abort on "search --maintained". Do not redirect to the new command automatically, since it has a different logic
2013-02-14 11:32:27 +01:00
Michal Vyskocil
a69d10616a
osc build on remote --host
...
The new argument for osc build --host will perform the build on a remote
host. It is a shortcut for
rsync -az -e ssh `pwd` user@hostname:/remote/dir
rsync -az -e ssh prefer-dir \
user@hotname:/remote/dir/__prefer-rpms__/prefer-dir
ssh -t user@hostname "cd /remote/dir/package; osc build *build-args"
rsync -az -e ssh user@hostname:/remote/dir/__keep-pkgs__ keep-pkgs
iow it copy the current directory to the /remote/directory on hostname
(if not specified, the ~/ is supplied) and then run the osc build on
hostname. All global and local arguments are supplied to the remote osc
build, but arguments points to local path (--host, --keep-pkgs, --prefer-pkgs,
--rsync-dest, --rsync-src and --overlay) are modified to match to remote
host.
It support the OSC_ variables, so running with
OSC_BUILD_ROOT=/somewhere osc build --host ... will push the variable to
the remove osc process
2013-02-12 15:08:20 +01:00
d26b3df32f
- handle architecture parsing also right when an emulator is used. Just warn in that case,
...
because we can check for sure if an emulator is configured.
2013-02-11 15:35:15 +01:00
Marcus Huewe
7d46c5f879
- do_chroot: fixed suargs handling (patch by Olaf Hering <olaf@aepfle.de>)
2013-02-07 15:50:53 +01:00
143af44479
- support --target argument for "osc build"
2013-02-06 17:12:52 +01:00
b07891879b
_submit_request: add missing newline before diff
2013-02-05 11:13:07 +01:00
8097a9550d
- fix local build with emulator support.
...
- fix package signing check (skip always for use inside of secure VMs)
2013-02-03 19:08:38 +01:00
Andreas Schwab
8f38f33228
do_submitrequest: missing newline before diff in message
2013-02-01 12:21:52 +01:00
Andreas Schwab
7ef8bee0b8
osc diff: use pager also for local diff
2013-02-01 12:21:33 +01:00
Markus Lehtonen
68670a7a83
Fix %(apihost)s in "build-root" option for osc chroot
...
Prevents a crash in osc chroot when %(apihost)s is defined in the
"build-root" config option.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-02-01 12:18:29 +01:00
4e0fb4cbeb
submitrequest: old not anymore used maintenance code got removed. It is possible now
...
to create one request to submit all changed packages of an project in
one request. Just run "osc sr" in the checked out project directory.
2013-01-31 16:03:16 +01:00
Adam Spiers
57c8cffe66
- add prdiff subcommand and test suite
2013-01-18 22:38:21 +00:00
Marcus Huewe
afa1911798
do_prjresults: support --xml option
...
"prjresults --xml..." simply prints the raw xml which it receives
from the api.
2013-01-18 16:56:13 +01:00
Marcus Huewe
cfed92103a
- do_maintainer: support "osc maintainer prj/pkg" syntax
2013-01-08 22:32:27 +01:00
Marcus Huewe
737bac561b
- added support to strip the build time from the buildlog when running "bl", "rbl", "lbl"
...
Also added a config option "buildlog_strip_time" to permanently enable/disable the
stripping of the build time.
2012-12-15 01:50:24 +01:00
bfa108810a
add support to remove repositories recursively (mostly only usefull for admins)
2012-12-06 14:07:02 +01:00
613e2b5176
- buildinfo --debug option for verbose output of dependency calculation
2012-12-04 16:44:14 +01:00
e0020e3072
- support to set the bugowner
...
- offer to send set_bugowner request if target is not writeable
- bugowner call is just an alias for maintainer call now
2012-11-23 12:52:05 +01:00
8d8d72a21f
- support default maintainer/bugowner search based on binary package names
2012-11-22 11:37:32 +01:00
7353cf99d7
support single binary download via getbinaries command
2012-11-19 10:21:24 +01:00
52e27750e4
- add support for delete requests.
2012-11-13 13:20:09 +01:00
Marcus Huewe
1fe51dc482
- do_repairlink: support "osc repairlink prj/pkg" syntax
2012-11-01 20:02:14 +01:00
Marcus Huewe
b8dedd3f8f
- request_interactive_review: support "-f" parameter to force a request state change
2012-10-26 15:19:00 +02:00
Marcus Huewe
6c5806c21e
- parse_repoarchdescr: also glob for a PKGBUILD file
...
There's no guessing for arch's PKGBUILD files (the backend
does not do any guessing, too)
2012-10-19 13:44:26 +02:00
Marcus Huewe
a82a1d7fa3
- parse_repoarchdescr: there's no need to use os.path.basename
2012-10-19 13:41:44 +02:00
15b27b7ff1
- add osc mr --cleanup option
2012-10-10 15:55:10 +02:00
Marcus Huewe
a8d26db675
Merge branch 'master' of github.com:openSUSE/osc
2012-09-20 01:20:23 +02:00