1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00
Commit Graph

2434 Commits

Author SHA1 Message Date
6de9cb4e03 - add support for buildtime source service mode 2015-04-24 09:47:48 +02:00
6886a0d58c - use "group:" prefix instead of "group/" like in other commands 2015-04-24 09:47:12 +02:00
Egbert Eich
95cfc2b96c Add missing tags for maintainer/bugowner
This was missed in 9937cb9ddf.

Signed-off-by: Egbert Eich <eich@suse.de>
2015-04-22 15:00:07 +02:00
Egbert Eich
9937cb9ddf Add support for searches for groups with -i, -b and -m
Involved parties can be persons or groups; add support for those.

Signed-off-by: Egbert Eich <eich@suse.de>
2015-04-22 12:40:07 +02:00
Andreas Schwab
dc8ab2ee30 Pass disk/swap/logfile options to obs-build also for VM type emulator 2015-04-17 11:10:54 +02:00
Andreas Schwab
b7912a78dd - do_buildhistory: split args on slash 2015-04-11 08:51:26 +02:00
e610cb569a Merge pull request #138 from k0da/threads
Pass threads option to obs-build
2015-04-08 10:30:14 +02:00
1a58102139 Merge pull request #135 from andreas-schwab/master
create_submit_request: fix return value when falling back to create_main...
2015-04-08 10:29:52 +02:00
dde0547558 Merge pull request #134 from k0da/master
ppc64le can build ppc64 in KVM
2015-04-08 10:29:20 +02:00
Marcus Huewe
40f4a61cbc - change_request_state: manual xml parsing is error-prone 2015-04-07 15:27:40 +02:00
Marcus Huewe
eda2e75655 - ServiceInfo.execute: cmd is a list...
See also pull request #141
2015-03-26 14:37:14 +01:00
8d39549253 fix crash, when source service failed 2015-03-18 09:02:48 +01:00
2258bc6d04 - fix regression of 72e38569ae
which broke "osc service run" command
2015-03-16 08:13:29 +01:00
19944be5b6 - 0.151.0 release 2015-03-12 19:49:30 +01:00
Ludwig Nussel
72e38569ae fix osc shell injection 2015-03-12 19:35:31 +01:00
Marcus Huewe
7116509330 - do_build: --noinit and --offline are _not_ mutually exclusive
Thanks to darix for the hint!
2015-03-10 15:49:35 +01:00
Dinar Valeev
e12f1b43c4 Pass threads option to obs-build
Currently --jobs sets only -smp flag for VM, in some cases we want
to pass threads as well. So the command line would like -smp 4,threads=4

Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2015-03-10 11:58:08 +01:00
Marcus Huewe
cff76bdfbd - added "name" attribute to the RequestHistory class
This fixes "AttributeError: RequestHistory instance has no attribute 'name'"
2015-03-09 20:20:39 +01:00
Andreas Schwab
4357c8fcd4 create_submit_request: fix return value when falling back to create_maintenance_request 2015-03-09 11:21:22 +01:00
2d3a51139e - display updatelink option when showing submit actions 2015-03-09 09:01:00 +01:00
ecd76148b8 - add support for updating the link in target package in submit action
This is also changing the request format to post OBS 1.0, but
that was also the case before when a source update option was used.
2015-03-09 08:45:07 +01:00
Bernhard M. Wiedemann
00c7b9dbfc fix typo in help message (bnc#918906)
https://bugzilla.opensuse.org/show_bug.cgi?id=918906
2015-02-21 08:49:56 +01:00
4bd0436033 - fix mismatch in given time, backend delivers always UTC unix time seconds 2015-02-17 10:26:04 +01:00
453be845af - fix crash on buildhistory with source linked packages
revision is a md5 string in that case (github issue#136)
2015-02-12 12:52:32 +01:00
Marcus Huewe
8f5bf385be - do_status: mention 'S' state in the help text 2015-01-21 03:01:29 +01:00
Dinar Valeev
5cc8a05d46 ppc64le can build ppc64 in KVM
Little Endian host can do build in Big Endian VM

Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2015-01-14 14:57:28 +01:00
d53278d94d - syntax fix 2015-01-13 16:50:47 +01:00
a3c23a575c - open 0.151 development 2015-01-09 15:50:46 +01:00
df9c28bba5 - prepare 0.150.0 release 2015-01-09 15:44:00 +01:00
0d66a5b1dc - add makeoriginolder option in request actions 2015-01-09 15:19:36 +01:00
Florian Bergmann
8a70a0f285 Added readline support to cmdln-module.
This was already fixed in the original module:
https://github.com/trentm/cmdln/issues/1

Signed-off-by: Florian Bergmann <fbergmann@suse.de>
2015-01-09 13:33:31 +01:00
fbbf945deb - trying a fallback in maintenance project detection
Evergreen project users not using their Evergreen:Maintenenace attribute
submit to the wrong place atm.
2015-01-09 11:21:51 +01:00
Marcus Huewe
8c8618ac91 - fixed corner case in __del__ method
For a detailed explanation see
d093c2b43b
2015-01-03 13:06:12 +01:00
Marcus Huewe
3547ef95ef Revert "Fix condition for using urllib2 workaround"
This reverts commit 2f14cedcff.

Actually, this was meant to fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762825,
which was (probably) caused due to the following:
- commit 320238350f introduced a codepath, which
  should not be needed for python >= 2.7.1 (see also
  https://hg.python.org/cpython/rev/64287)
- this codepath uses the "reset_retry_count" method, which is not present in
  Debian Jessie's libpython2.7-stdlib: libpython2.7-stdlib_2.7.8-11 backports
  a patch from python's 2.7.9 branch, which removes the "reset_retry_count"
  method (https://hg.python.org/cpython/rev/c1edc4e43eb1).

This fixes bnc#911080 and github issue #131.
2014-12-23 04:34:40 +01:00
Marcus Huewe
68d10dfe8b Revert "- reset retry counter on 404 answer for all python 2.7.x versions"
This reverts commit 320238350f.
With python >= 2.7.1 this codepath should not be needed (see also
https://hg.python.org/cpython/rev/64287).

Conflicts:
	osc/conf.py
2014-12-23 03:46:32 +01:00
Marcus Huewe
b2ec0c263a Merge branch 'repr' of https://github.com/jelly/osc 2014-12-17 12:30:50 +01:00
9cddc53afc - add mr --release-project option for kgraft updates 2014-12-12 13:44:24 +01:00
Jelle van der Waa
0495439093 Add __repr__ for Repo class 2014-12-10 09:51:50 +01:00
Michael Schroeder
7ca0b2d04e send conflicts/obsoletes for local packages as well
Also sends the missing "I" entry, so the backend has no longer
to guess the version from the self-provides.
2014-12-09 13:12:34 +01:00
Michael Schroeder
7acaba2d8a add obsoletes, conflicts, evr query methods 2014-12-09 13:04:55 +01:00
Marcus Huewe
e1e2dd8676 - fixed #129
Basically, this was broken since commit bb75ce34fd.
2014-12-08 22:19:28 +01:00
Marcus Huewe
42d3e815c1 - do_status: mark a frozen package with an "F" 2014-11-21 16:12:26 +01:00
Marcus Huewe
fddf2e3e6c - Package.mark_frozen: also print the name of the affected package
This is needed if mark_frozen is (indirectly) called from Project.update
(otherwise it is not clear for which project an "osc pull" has to be performed).
2014-11-21 16:00:07 +01:00
Denis Pynkin
d17b497867 Added configuration options for kernel and initrd selection during KVM build
Some distributions have no initrd images compatible with KVM builds and
sometimes we need to use not system kernel version.

New options in configuration file:
- build-kernel -- kernel used for VM builds
- build-initrd -- initrd image used for VM builds
2014-11-20 19:09:53 +03:00
Michael Schroeder
f47c39521d Verify hdrmd5 of packages if specified in the buildinfo
Needed for buildenv builds that want specific packages.
2014-11-17 12:40:54 +01:00
Marcus Huewe
930dfc1999 - parse_repoarchdescr: added openSUSE_Tumbleweed to the repository list 2014-11-17 10:12:35 +01:00
Marcus Huewe
ad92e8abb7 - fixed #122 ("osc chroot fails to use the osc build buildroot directory")
Renamed osc chroot's "--root" option to "--login-as-root" (kept the short
option "-r"). Added new "--root /path/to/buildroot" option (this is consistent
with "osc build --root...").
2014-11-14 15:54:55 +01:00
87021e41fe - fix crash regression 'issue#124' 2014-11-12 14:40:24 +01:00
de702bb8ed - follow the request order of the api (sorting according to priorization) 2014-11-11 08:26:17 +01:00
Michael Schroeder
6ccf64fc2f fix buildenv data name, it needs to be "buildenv"
The repo server is kind of picky...
2014-11-07 13:52:06 +01:00
Michael Schroeder
d5b795a02b osc build: add support for _buildenv upload 2014-11-07 13:41:34 +01:00
Marcus Huewe
165d2385da - edit_message: restore old filename suffix
Due to the refactoring in commit bb75ce34fd
the suffix defaulted to '.txt'.
2014-11-02 20:12:16 +01:00
6a4423ff62 - better example for osc api -e 2014-10-31 14:14:06 +01:00
bb75ce34fd - add "osc api --edit" option 2014-10-31 09:22:25 +01:00
Marcus Huewe
3e57d58729 - do_meta: fixed description (partly fixes #120) 2014-10-27 01:31:47 +01:00
Marcus Huewe
27bdf6cbdd - do_addremove: if a "deleted" file exists in the wc, track it again 2014-10-21 22:31:30 +02:00
Marcus Huewe
26ffaa9de8 - do_addremove: fixed "corner case"
Assume $PWD/x is a directory and /path/to/pkg/x is an unversioned file.
Without this fix, "osc ar /path/to/pkg" did not add the file "x".
2014-10-21 22:23:28 +02:00
Marcus Huewe
e8f0e78672 - do_addremove: use local variable instead of an attribute (cosmetic) 2014-10-21 22:15:54 +02:00
Marcus Huewe
c69237b14d - open 0.150 development 2014-10-21 11:09:09 +02:00
Marcus Huewe
4c4650f0e9 - prepare 0.149 bugfix release 2014-10-21 11:02:30 +02:00
Marcus Huewe
ca7ad96ec9 - raise more specific exceptions 2014-10-20 13:29:03 +02:00
Marcus Huewe
67caa8b555 - oops, fixed typo
Call "update_needed" instead of "needs_update"
2014-10-11 13:29:47 +02:00
e3bb5fba23 - support multiple parallel maintenance workflows
for the same projects. So do not use project "maintains", but the
attribute to be able to switch between maintenance, security and PTF
working contexts for example.
2014-10-07 16:40:42 +02:00
Marcus Huewe
a7c92eb18f - do not hardcode path to the build scripts and removed legacy check 2014-10-01 14:45:48 +02:00
Adam Spiers
e1cdf86bdf fix osc service exit code
Commands like "osc service disabledrun" would always return exitcode 0
even when the source service failed.  This broke any scripts which
wrapped around osc service.
2014-09-30 12:51:13 +01:00
Marcus Huewe
e44a452d3e - fixed #99 ("do_package_tracking = 0") 2014-09-26 13:41:53 +02:00
Sjoerd Simons
2f14cedcff Fix condition for using urllib2 workaround
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762825
2014-09-26 09:54:03 +02:00
Marcus Huewe
603cf3b713 - fixed #113 ("osc creq -s ...") 2014-09-23 13:05:10 +02:00
Marcus Huewe
45bf1945d0 - do_createrequest: remove --diff option
This never worked and makes no sense (IMHO): use "osc request" for things
like that.
2014-09-23 12:45:44 +02:00
00ecb4de15 - fix crash with not existing priorities 2014-09-12 09:02:38 +02:00
3d07bd8460 - fix description rendering in history elements 2014-09-11 14:34:22 +02:00
ea092a7f23 - roll 0.148 release for new request history support 2014-09-11 12:33:30 +02:00
bd82e236ee - display request priorities, if important or critical
- add "osc rq priorize" command to re-priorize existing requests
 - allow also "osc rq ls" shortcut
2014-09-11 11:25:24 +02:00
b0479fa760 - support new history including review history of OBS 2.6 2014-09-11 11:08:13 +02:00
Denis Pynkin
e0d96a49b3 Initialize variable 's_built' during image build.
Fixed images local build failure because of
uninitialized variable 's_built'.
2014-09-09 16:07:35 +03:00
6a7535d2e7 open 0.148 development 2014-08-26 09:53:19 +02:00
3606506d1e - prepare 0.147 release 2014-08-26 09:50:19 +02:00
3b6f7f1269 - make it possible to list by given review states
it used the state always for request and review state before, which makes no sense.

makes the code a bit nicer as well hopefully as well
2014-08-25 17:02:56 +02:00
3adb160e0f support groups in maintainership requests 2014-08-19 14:34:18 +02:00
Marcus Huewe
b07a4d0b37 Merge branch 'w291' of https://github.com/berendt/osc
Conflicts:
	osc/build.py

Resolved merge conflict.
2014-08-14 17:24:28 +02:00
Christian Berendt
1751bdc47f Resolve PEP8 issue E231
* E231 missing whitespace after ':'
2014-08-13 17:30:12 +02:00
Christian Berendt
d35983d5b8 Resolve PEP8 issue W291
* W291 trailing whitespace
2014-08-12 15:01:16 +02:00
Ludwig Nussel
1b6e2ac745 support the ls expand option also for projects
packages of linked projects can be listed using the expand option
2014-08-11 17:06:18 +02:00
Marcus Huewe
902adde28b - do_localbuildlog: support %(apihost)s in build-root config setting 2014-08-04 11:15:34 +02:00
7649481167 - use "set_version" service by default on "osc add git://..." 2014-07-22 09:31:54 +02:00
6a6e614661 - switch to xz default for "osc add git://" ... 2014-07-22 09:30:43 +02:00
Marcus Huewe
e9233a5eab - parse_repoarchdescr: remove duplicates from repo_names 2014-07-21 14:32:54 +02:00
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
Jan Blunck
b2ad3ebabc Make get_built_files() take the buildtype instead of the pactype
It is possible that two different build types use the same package type.
Therefore we need to make get_built_files() work on the build type.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
2014-07-04 16:42:53 +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
Dinar Valeev
ee15c4cb11 Add ppc64le to Debian arch map
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2014-06-25 15:05:17 +02:00
Marcus Huewe
cb9a5d5a17 - show_project_sourceinfo: quote package names 2014-06-24 23:05:38 +02:00
Marcus Huewe
0389a0343c - renamed {show,get}_sourceinfo to {show,get}_project_sourceinfo 2014-06-23 10:58:20 +02:00
Marcus Huewe
d45b3e49c0 - get_sourceinfo: workaround for too long request uri (status code 414) 2014-06-23 09:51:49 +02:00
Marcus Huewe
2f8db7fea0 - speedup update of a project working copy
The new code tries to reduce the number of http requests for unchanged
packages (that is, packages that do not need an update).
In the worst case (the project wc's packages are unchanged and contain
services, for example), the new code needs #http requests of the old code + 1
http requests. But we can improve, once the "noservice" patch
(see http://lists.opensuse.org/opensuse-buildservice/2014-06/msg00067.html)
is merged.
Note: the semantics of the update process itself did not change.
2014-06-22 15:41:14 +02:00