7bb0c4b730
fix extra parameters for manual release as wanted by api
2015-09-07 12:39:15 +02:00
0b34cb4567
- fix enable channel logic for given channel package
2015-09-04 11:10:20 +02:00
Marcus Huewe
c902d174d8
- conf.parse_apisrv_url: strip trailing slashes from the path
...
Since commit ca2f1a90c8
a section like
[https://api.opensuse.org/ ] was not associated with an
"apiurl=https://api.opensuse.org " entry anymore.
2015-08-20 14:45:02 +02:00
Ludwig Nussel
d534218421
fix exception
...
TypeError: can only concatenate list (not "tuple") to list
2015-08-17 17:36:45 +02:00
Oleg Girko
4d3fcd9dc1
Fix Python 3 support.
...
This change fixes errors when running test suite with Python 3.
Signed-off-by: Oleg Girko <ol@infoserver.lv>
2015-08-13 12:44:19 +01:00
Oleg Girko
c62c9f54a0
Add support for TLS SNI if M2Crypto supports it.
...
Currently osc can't access API URLs which share the same IP address
with other SSL-enabled sites, complaining about certificate
not matching hostname.
This change solves this problem by instructing M2Crypto.SSL.Connection
to send the desired hostname to https server using TLS SNI extension,
thus allowing the server to present the right certificate and choose
the right virtual site.
This is useful for those who can't afford to have a separate IP address
for OBS API.
For TLS SNI to work correctly, M2Crypto should be patched:
https://bugzilla.osafoundation.org/show_bug.cgi?id=13073
Some distributions (like Fedora) already include this patch.
For unpatched M2Crypto osc degrades to operation without TLS SNI.
Signed-off-by: Oleg Girko <ol@infoserver.lv>
2015-08-13 11:11:42 +01:00
a031dbd083
show review comments in an own line. Before they started in the same line, but reached on typical
...
screens anyway the second line if they had more than a few chars.
2015-08-13 08:07:34 +02:00
f9e54d0488
Merge pull request #145 from OlegGirko/api-fix-root-path
...
Add support for non-root paths in API URLs.
2015-08-13 07:52:35 +02:00
3b203e67a9
Merge pull request #148 from lnussel/master
...
allow force commit
2015-08-13 07:50:58 +02:00
7352a47930
Merge pull request #155 from arunpersaud/ET.parse_error
...
More meaningful error if ET.parse runs into problems. Fixes #153 .
2015-08-13 07:50:08 +02:00
f788fddb6c
Merge pull request #152 from jelly/xml_parse_error
...
When lxml fails to parse the _service file show error message instead of backtrace
2015-08-13 07:49:40 +02:00
Daniel Gollub
beb46cc012
Support prefer-pkg for live-build
2015-08-12 16:29:22 +02:00
ba7e20bcd1
- maintenance request offers to supersede old, but still open requests
...
bnc#940731
2015-08-07 10:17:40 +02:00
Marcus Huewe
7370950cab
Merge branch 'get_group-error-messagge' of https://github.com/DimStar77/osc
2015-08-06 15:12:48 +02:00
Marcus Huewe
0442cdf5f4
- improved a comment a bit
2015-08-06 14:23:45 +02:00
Marcus Huewe
3f6eaeaff9
Merge branch 'master' of https://github.com/b1-systems/osc
2015-08-06 14:21:39 +02:00
Marcus Huewe
da40039bbc
Merge branch 'master' of https://github.com/andreas-schwab/osc
2015-08-06 13:58:49 +02:00
0e32b71491
core: fix get_group error message
2015-08-06 12:52:34 +02:00
Marcus Huewe
e435a84440
- made "osc rq <prj> <pkg>" output more precise, in case of no results
2015-08-04 12:51:45 +02:00
Stefan Seyfried
0360381087
fix an "400 Bad Request" when running against old API
...
Updating a whole project against an old API server (experienced with
2.3.5) leads to:
Server returned an error: HTTP Error 400: Bad Request
unknown parameter 'nofilename'
So just retry without nofilename if an 400 is thrown.
2015-07-29 14:30:47 +02:00
f7cfe4cdc8
- fix search of requests "I" created. fixes obs#1002
...
This is using the request collection api call now instead of xpath query.
More searches should be adapted similar most likely.
"osc my sr" is not a good name for this since it is not limited to
submit actions. But "osc my rq" is used for incoming requests.
2015-07-29 11:05:05 +02:00
083f23f77b
support new package instances on branching when using -N parameter
2015-07-21 13:03:07 +02:00
71297e31f4
Don't use gmtime for a time difference
...
The gmtime function is intended to be used for calendar time.
2015-07-21 11:45:35 +02:00
7896937f50
Remove use of %Z with gmtime
...
%Z doesn't make sense for a time returned by gmtime.
2015-07-21 11:45:35 +02:00
d5b0d8fe52
print_jobhistory: Remove unused variables
2015-07-21 11:45:35 +02:00
Marcus Huewe
e9d7ac9c82
- do_addchannels: handle wrong args more gracefully
2015-07-15 20:46:38 +02:00
Marcus Huewe
0daec6a5f1
- do_addchannels: cleanup and beautify
...
No changes w.r.t. to semantics.
2015-07-15 20:43:09 +02:00
Marcus Huewe
8d10a3f76f
- removed debug output
...
Introduced in commit 76023d5643
.
2015-07-15 20:01:32 +02:00
569efcace8
- make the enablechannels command also working for entire project
2015-07-15 15:22:26 +02:00
76023d5643
add "addchannels" and "enablechannel" commands
2015-07-14 16:03:35 +02:00
Marcus Huewe
fa4f24f06b
- RpmQuery.rpmvercmp: support tilde ('~')
2015-07-03 14:22:00 +02:00
Daniel Gollub
64838ffd51
Support native Debian packages in pkg-prefer
...
fixes #158
2015-07-02 15:08:39 +02:00
cf9d65b09d
- do not hide api side error message
2015-07-01 09:47:53 +02:00
f59b60e206
- release 0.152.0
2015-06-30 15:34:32 +02:00
381071a332
support maintenance_release requests with acceptinfo data (OBS 2.7)
2015-06-30 14:29:18 +02:00
Marcus Huewe
cbdc1389db
- do_repourls: do not hardcode the download_url
...
Instead ask the api for the download_url configuration element.
2015-06-29 23:59:59 +02:00
Marcus Huewe
a80b286ac9
- fixed #147
...
Introduced new PackageQueryResult class and adapted existing
modules accordingly.
2015-06-23 17:52:37 +02:00
Marcus Huewe
84ba8c6e17
- fixed fullfilename calculation in the Pac class
...
Now, the fullfilename is calculated using the canonname of a
bdep instead of using the bdep's binary attribute (the canonname
and binary attribute can differ (e.g. ConsoleKit-64bit-0.4.6-3.2.ppc.rpm
vs. ::import::ppc64::ConsoleKit-64bit-0.4.6-3.2.ppc.rpm))
2015-06-16 17:37:40 +02:00
10aa2203bb
- support target package in accepted maintenance_incident
2015-06-11 12:41:22 +02:00
caef99c3d9
- allow diffing of maintenance requests
2015-06-11 11:05:08 +02:00
e052839027
- support acceptinfo in maintenance_incident requests
2015-06-11 10:24:24 +02:00
1509db3ff1
- allow to use "osc chroot" also with lxc build-type
2015-06-09 17:26:57 +02:00
Marcus Huewe
4dc236dea4
- added "lock" command to lock a project or package
2015-05-30 16:27:54 +02:00
Arun Persaud
ac93a3934e
More meaningful error if ET.parse runs into problems. Fixes #153 .
2015-05-24 11:11:22 -07:00
Oleg Girko
ca2f1a90c8
Add support for non-root paths in API URLs.
...
Currently osc supports API URLs without path only,
like https://api.example.com (if there is pathname, it's just ignored).
With this change API URLS with path, like https://example.com/api
are supported correctly.
This is useful for those who can't have OBS api, webui and main site
on different domains and buy separate X.509 certificates for them,
or just can't afford to have separate IP addresses for them
(please note that currently osc doesn't support TLS SNI).
Signed-off-by: Oleg Girko <ol@infoserver.lv>
2015-05-14 16:46:10 +01:00
Jelle van der Waa
92dbd59814
When lxml fails to parse the _service file, instead of showing a backtrace
...
print a userfriendly error which line and column contains the XML syntax error
2015-05-13 14:35:17 +02:00
Michael Schroeder
f8f4119b88
Don't filter out \b,\v,\f,\r in logfiles
2015-05-07 15:51:51 +02:00
Marcus Huewe
e4919568eb
- do_build: added --trust-all-projects option
...
--trust-all-projects can be used to disable the trusted project check
2015-05-05 23:39:58 +02:00
Marcus Huewe
de9191f146
- updated distributions that are used in the new project template
...
Also enabled debuginfo generation by default.
2015-05-05 22:46:26 +02:00
464652ab85
show possible used incident projects on "maintained" command
...
FATE#318944
2015-05-05 14:01:10 +02:00
Ludwig Nussel
826808d7cf
allow force commit
...
useful to workaround https://github.com/openSUSE/open-build-service/issues/913
2015-04-29 13:44:12 +02:00
Andreas Schwab
ab111f4204
- do_deleterequest: fix help text
2015-04-27 11:04:46 +02:00
Marcus Huewe
a800f8f3fc
Merge branch 'master' of https://github.com/andreas-schwab/osc
2015-04-27 10:49:48 +02:00
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
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