015ab4cd40
Merge pull request #208 from b1-systems/project_meta_revision_ctrl
...
Add revision control options to meta project commands
2016-06-08 09:10:21 +02:00
abe0ffad76
Merge pull request #207 from adrianschroeter/master
...
add "osc service runall"
no feedback yet, but it is not removing functionality, so let's try in real life
2016-06-08 09:10:14 +02:00
Marcus Huewe
acbd2c17c7
Revert "Simplify core.http_request"
...
This reverts commit c53a7681ef
(for now!).
It seems to break local obs instances (see issue #202 ) (this needs
further debugging). Moreover, it breaks the python 3.4 - excerpt
from a travis run:
======================================================================
ERROR: test_added_missing2 (test_commit.TestCommit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python/3.4.2/lib/python3.4/urllib/request.py", line 1111, in do_request_
mv = memoryview(data)
TypeError: memoryview: _io.BufferedReader object does not have the buffer interface
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/openSUSE/osc/tests/common.py", line 122, in wrapped_test_method
test_method(*args)
File "/home/travis/build/openSUSE/osc/tests/common.py", line 122, in wrapped_test_method
test_method(*args)
File "/home/travis/build/openSUSE/osc/tests/common.py", line 122, in wrapped_test_method
test_method(*args)
File "/home/travis/build/openSUSE/osc/tests/common.py", line 122, in wrapped_test_method
test_method(*args)
File "/home/travis/build/openSUSE/osc/tests/common.py", line 122, in wrapped_test_method
test_method(*args)
File "/home/travis/build/openSUSE/osc/tests/test_commit.py", line 290, in test_added_missing2
p.commit()
File "/home/travis/build/openSUSE/osc/tests/osc/core.py", line 1471, in commit
self.put_source_file(filename, tdir)
File "/home/travis/build/openSUSE/osc/tests/osc/core.py", line 1319, in put_source_file
http_PUT(u, file = tfilename)
File "/home/travis/build/openSUSE/osc/tests/osc/core.py", line 3243, in http_PUT
def http_PUT(*args, **kwargs): return http_request('PUT', *args, **kwargs)
File "/home/travis/build/openSUSE/osc/tests/osc/core.py", line 3231, in http_request
fd = urlopen(req, data=data)
File "/opt/python/3.4.2/lib/python3.4/urllib/request.py", line 153, in urlopen
return opener.open(url, data, timeout)
File "/opt/python/3.4.2/lib/python3.4/urllib/request.py", line 453, in open
req = meth(req)
File "/opt/python/3.4.2/lib/python3.4/urllib/request.py", line 1116, in do_request_
data))
ValueError: Content-Length should be specified for iterable data of type <class '_io.BufferedReader'> <_io.BufferedReader name='/tmp/osc_test571whun4/osctest/added_missing/.osc/_in_commit/bar'>
2016-06-02 21:59:40 +02:00
Karsten Keil
fca93a8b60
Add revision control options to meta project commands
2016-06-02 08:23:47 +02:00
28c12686b9
add "osc service runall"
...
This is up for discussion, but I try to simplify the interface here:
- obsolete "localrun" and "disabledrun". Still implemented, but not anymore
recommended and documented. can hopefully removed later.
- "runall" is running all services local, also buildtime services
- files get replaced by the service
- can be used to get final tar balls to be used with tools like quilt
2016-06-01 17:10:31 +02:00
2364a08236
handle "_project" package always as local package
2016-05-31 09:26:28 +02:00
Marcus Huewe
c53a7681ef
Simplify core.http_request
...
There is really no need for mmap...
2016-05-16 18:48:57 +02:00
Marcus Huewe
8466e49d59
- request_interactive_review: handle 404 during get_results more gracefully
...
Catch exception and just print the error instead of exiting
the interactive review.
2016-04-22 15:16:53 +02:00
Marcus Huewe
ce9a6d0f46
Fixed "osc buildinfo --prefer-pkgs..."
...
Was broken since ages (literally!)...
(see commit d5b795a02b
).
2016-04-14 16:25:48 +02:00
564918f37a
open 0.155 development
2016-04-11 10:50:10 +02:00
941e5b0289
prepare 0.154.0 release.
...
A small release, but brings the critical stuff to work with new git handling
of OBS 2.7
2016-04-11 10:48:05 +02:00
a3684394a1
show branch errors again
2016-04-11 10:45:40 +02:00
24290ebf95
switch to new obsinfo service
2016-04-08 09:07:38 +02:00
65201ad1bc
set OSC_VERSION environment for source services
...
will be needed by new obs_scm service
2016-04-01 12:57:00 +02:00
Marcus Huewe
c5f56e7f6c
- fixed boo#896633
2016-03-19 22:01:52 +01:00
Marcus Huewe
3298732576
- refactored Serviceinfo.read a bit
2016-03-04 10:22:21 +01:00
Marcus Huewe
b480206829
- Fix for commit d6bd44a9a4cf585d12c9d7e597dbddccea34a1c3...
2016-03-04 10:20:39 +01:00
Marcus Huewe
d6bd44a9a4
- Serviceinfo.execute: create tmpdir in the package wc
...
The advantage is that we can use os.rename instead of shutil.move
to move the files.
2016-03-04 09:40:58 +01:00
f6324f2aa0
open 0.154 development
2016-03-04 08:37:33 +01:00
3a0353eef1
0.153.0 release
2016-03-04 08:37:33 +01:00
aa74e98fb3
add new service commands (merge and wait)
2016-03-04 08:37:33 +01:00
Nelson Manuel Marques
72c2bd7cfd
FIX https://github.com/openSUSE/open-build-service/issues/1591
2016-03-02 17:47:22 +00:00
779c7763cc
add repository strategy options to branch command
2016-03-02 17:13:11 +01:00
Bernhard M. Wiedemann
bbefe024e5
add vm-user option
...
this needs latest obs-build to work
2016-02-18 11:31:59 +01:00
d4336dc19a
- print created submit request ID before handling supersedes
...
So it is printed even when something goes wrong with superseding (boo#966731)
2016-02-15 15:32:26 +01:00
Marcus Huewe
6a69ecc137
- oops... unbreak copy_pac again ( fixes #181 )
...
Got broken in commit ffb37960ff
.
2016-02-12 10:39:54 +01:00
Marcus Huewe
e8783d2501
- introduced new "request_show_source_buildstatus" config option
...
If enabled, it always shows the source buildstatus during
"osc rq show <id>" or "osc rq list --interactive". By default, it is
disabled.
2016-02-10 18:27:35 +01:00
Marcus Huewe
add34d65cb
- support --source-buildstatus during interactive review
2016-02-10 18:19:22 +01:00
Marcus Huewe
75f6b3fbc1
- do_status: "cluster" package states in the output
...
This only affects "osc st" in a prj wc.
2016-02-10 13:54:24 +01:00
Marcus Huewe
ec6fab6793
- simplified show_upstream_xsrcmd5 a bit
2016-02-09 14:42:50 +01:00
Marcus Huewe
d646915c04
- allow to directly expand a non-link during "osc up -e"
2016-02-08 17:24:35 +01:00
Marcus Huewe
244a704033
- Package.status: handle a dangling symlink more gracefully
...
More precisely, treat it as unversioned.
2016-02-07 22:58:23 +01:00
Marcus Huewe
f3a1d12a96
- refactored package result code a bit ( fixes #180 )
...
Note: this commit "breaks" the existing get_package_results api, because
it returns a generator, which yields a result xml, instead of a list of
result dicts.
2016-02-07 00:55:23 +01:00
Marcus Huewe
ffb37960ff
- do_copypac: rewrote client side copy code ( fixes #181 )
...
Use the "standard" commit procedure (a.k.a. cmd=commitfilelist).
Additionally, refactored the corresponding code in the Package class
a bit.
2016-02-05 17:16:42 +01:00
Marcus Huewe
51ccd6741c
- use atime instead of mtime when guessing the repo arch
...
atime is more reasonable (e.g. in case of an offline build).
2016-02-05 16:11:11 +01:00
Marcus Huewe
5d068b091a
- do_buildlog: support "osc bl repo"
...
In this case, "osc bl repo" behaves more or less the same as "osc rbl repo"
(in case no corresponding .osc/_buildinfo file exists, we default to
repo and hostarch).
2016-02-05 16:10:43 +01:00
Marcus Huewe
8a78be684e
- removed broken "install" command from the ui
...
The command was hidden since 2009 (so there shouldn't be much breakages).
This also fixes #185 .
2016-02-05 11:56:22 +01:00
Marcus Huewe
89ac49f659
fetch.py: reworded Fetcher.failureReport message a bit
...
Based on PR#182.
2016-02-05 11:28:47 +01:00
b40d856e67
add --limit option to buildhistory
2015-12-07 10:05:08 +01:00
Marcus Huewe
b15f97bcd0
- conf._build_opener: make sure no certs are checked if "sslcertck" is disabled
...
Since python >= 2.7.9 urllib2/httplib verifies the ssl cert by default - so
make sure that this "builtin" ssl check is disabled as well if
"sslcertck" is disabled. Fixes #179 .
Note: eventually, we should abandon m2crypto and use urllib2/httplib to
verify the ssl cert.
2015-11-28 22:39:49 +01:00
25118ceccc
- support --vm-telnet option for KVM builds
...
latest build package is required.
2015-11-25 14:20:55 +01:00
Johannes Lahti
a364a4c456
Added missing localrun help text to do_service
2015-11-12 10:37:03 +02:00
Egbert Eich
f17bef21e5
Make '-o' option work also when checking out complete projects
...
Signed-off-by: Egbert Eich <eich@freedesktop.org>
2015-11-10 16:43:33 +01:00
Egbert Eich
43ffb9f3ac
maintenancerequest: simplify sytnax to create request for single package
...
The syntax to create a maintnancerequest for a single currently package
is:
osc mr SOURCEPROJECT SOURCEPACKAGES RELEASEPROJECT
which means that the source project, the package name and the release
project have to be specified on the command line.
Often times the workflow is such that the user will already be inside
of the subdirectory containing the checked out package.
To simplify the submission when the user is in a package subdirectory
this patch adds the syntax:
osc mr .
to indicate that the source project and source target is to be taken
from the meta information in this package directory.
Signed-off-by: Egbert Eich <eich@freedesktop.org>
2015-11-10 16:38:41 +01:00
df9c3000b0
- add --linkrev option to branch command
2015-10-23 11:08:30 +02:00
e9766d5d5b
- seperate add and enable channel command for better command description
...
- adapt to new api mode handling
2015-10-22 09:40:09 +02:00
Marcus Huewe
dc32cde545
- do_request: also print comments when running "osc rq show <reqid>"
...
Fixes #171 .
2015-10-19 13:14:53 +02:00
4e83af8294
branch_pkg: fix use of undefined variable
2015-10-07 16:27:55 +02:00
Marcus Huewe
400352c61e
- do_branch: do not checkout server service files if "--checkout" is specified
...
Otherwise one has to checkout the expanded sources without the
server service files before doing a commit.
2015-10-03 22:24:58 +02:00
Marcus Huewe
cc3979cc7f
- do_maintenancerequest: fixed TypeError ("'NoneType' object is not iterable")
...
Broken since commit ba7e20bcd1
.
2015-09-24 18:25:22 +02:00
Marcus Huewe
070daecaf5
- build.Buildinfo: improved error formatting
...
Use the same formatting for an "unresolvable" error as in "osc results -v"
2015-09-23 18:29:51 +02:00
4342d9a6e1
Correction of grammatical errors
...
"exists" is a Python keyword, and wrong outside the 3rd person
singular in English.
2015-09-16 10:17:15 +02:00
5d6882e0e1
Collax support
2015-09-10 11:35:27 +02:00
Marcus Huewe
e697a70921
- Package.__get_files: check for broken files meta
...
Fixes #170 .
2015-09-07 19:28:56 +02:00
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
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
Marcus Huewe
fdfbcdc6eb
- babysitter: catch URLGrabError exception
2014-06-08 22:32:35 +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
fff6f3ddb1
Merge branch 'fix-bl-strip-time' of https://github.com/rudimeier/osc
2014-06-04 15:49:59 +02:00
Marcus Huewe
7efd6db501
- added support for a per apiurl "build-root" option
...
Resolution order:
OSC_BUILD_ROOT env var > apiurl build-root option > general build-root option
2014-06-04 15:33:30 +02:00
Marcus Huewe
e2abfe9e6a
- OscConfigParser: added "proper" parameter to the has_option method
...
This can be used to check if the option belongs to the section or is
just "inherited" from the defaults.
2014-06-04 15:29:50 +02:00
Ruediger Meier
7fc5936faf
core: fix, buildlog --strip-time failed to remove time
...
If a time field is not complete within the same read block
then it can't be found by time_regex in buildlog_strip_time().
Fixed by simply reading line by line. I couldn't measure any
performance difference neither for real nor user time. IMO no
need to optimize for more lines per data chunk. Maybe it's
even more fluent now for interactive users.
BTW we can safely simplify time_regex.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-23 09:19:07 +00:00
Ruediger Meier
1d7b954022
core: streamfile() can read line by line
...
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-23 09:17:01 +00:00
Ruediger Meier
6bb8ca437b
core: style, de-duplicate read() calls
...
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-23 09:10:48 +00: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
c7222540e3
- restore default behaviour of setlinkrev command
...
The purpose of the default is to freeze the link
to the current version in the link target. It did
entirely drop the rev attribute which basically
unfreeze the link (same as -u).
2014-05-16 10:30:15 +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
Michael Schroeder
42c357336e
take epoch into account when calculating the filename
...
ArchLinux has the epoch in the canonname, Debian discusses doing
this as well.
2014-05-13 13:29:41 +02:00
f20b26007e
- fix another place of group handling for set_bugowner
2014-05-09 10:31:17 +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
Michael Schroeder
5a65b06927
support installonly/noinstall tags for mock buildengine
2014-04-30 16:26:03 +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
c398cb344a
- fixed testsuite (and indention)
...
Broken by commit 0e3641610e
2014-04-16 15:56:59 +02:00
0e3641610e
support maintenance release request with acceptinfo data (OBS 2.6)
2014-04-16 15:47:58 +02:00
Marcus Huewe
d6e6c0538e
- get "osc build --prefer-pkgs ..." working with Arch
2014-04-03 17:41:41 +02:00
Marcus Huewe
0b7e49b648
- open 0.146 development
2014-04-03 09:32:21 +02:00
Marcus Huewe
2170abb612
- prepare 0.145.0 release
2014-04-03 09:31:51 +02:00
Andreas Schwab
9ab3c5becc
print_buildlog: don't strip tabs
2014-03-15 22:27:33 +01: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
Marcus Huewe
8c506e5929
- fixed "osc -H ..." in combination with a proxy
2014-03-11 19:40:27 +01:00
Marcus Huewe
9034b27814
- fixed creation of ~/.osc_cookiejar
...
A "PyCFunction_Type" like os.open takes no keyword arguments.
2014-03-10 22:36:56 +01:00
Marcus Huewe
720c685868
- core.Package.commit: make sure a _meta is created for newly added packages
...
Fixed typo (introduced in commit 6469efb9ed
).
2014-03-06 10:25:30 +01:00
Marcus Huewe
6469efb9ed
- core.get_local_origin_project: added check for None
2014-03-06 09:56:13 +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
1dc8109ef8
Fix missing unquote in meta pkg check
...
Fixes issue #77
2014-02-28 00:42:47 +01:00
Ludwig Nussel
f065dc4765
show source revision in submit requests
2014-02-27 16:46:49 +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
fdd58e23c8
- roll 0.144.0 release
2014-02-27 10:42:03 +01:00
Ludwig Nussel
955c46495b
replace sys.exit(0) to avoid backtrace
2014-02-27 08:39:54 +01:00
Marcus Huewe
d92098a864
- Package.commit: fixed spelling error and added FIXME comment
2014-02-25 14:09:04 +01:00
Marcus Huewe
d8e0b82b10
- fixed core.edit_meta
...
The change introduced in commit a20c6f5d99
broke the creation of new packages.
2014-02-25 14:06:20 +01:00
a20c6f5d99
Allow commits to linked pakages.
...
If the package is linked to a different project, osc will ask
permision to branch the package in the current project before
commiting.
Show a message in osc meta pkg -e in the same case.
2014-02-24 16:02:47 +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
2c6415264d
- fix "osc build $repo aarch64" call without specifing a spec file. aarch64 is not recognized as architecture due to wild parameter guessing
2014-02-03 17:33:49 +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
cb14b06a74
open 0.144 development
2014-01-24 10:51:00 +01:00
af2dffb002
prepare 0.143
2014-01-24 10:48:46 +01:00
7fcb1bbe3e
- fix set bugowner command
2014-01-24 10:29:00 +01:00
9e07851310
- fix "osc up -S" including service files, regression in 0.142 from commit 930974b4ab
2014-01-21 18:09:20 +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
Marcus Huewe
9a8679a21e
- core: added wrapper for os.utime (workaround for bnc#857610)
...
It seems that os.utime raises EINVAL if the file resides on a nfs
share. Since osc itself does not rely on the correct utime, we simply
ignore this exception.
2014-01-09 14:15:30 +01:00
Marcus Huewe
a4632969e4
- core.Package.commit: only update store if the commit was successful
...
This fixes bug #65
2014-01-09 13:56:34 +01:00
Marcus Huewe
5e5427f9be
- ServiceInfo.execute: also cleanup dirs
...
Fixes #67 .
2014-01-09 10:24:48 +01:00
Michal Vyskocil
111fd87715
passx encode/decode functions
...
The string.encode('bz2') does not work in python3. Implement
passx_encode/passx_decode functions compatible with python 2.6, 2.7 and
3.3.
Add a simple unit test.
2014-01-08 15:43:57 +01:00
Vitezslav Cizek
f85c76bd42
correctly specify --delete option when using rsync
2014-01-08 15:18:02 +01:00
Michal Vyskocil
5d5185cbc6
chmod handling
...
* prefer os.open instead of open && os.chmod
* prefer os.fchmod when fd exists
2014-01-06 11:12:02 +01:00
Marcus Huewe
550039f746
- core.request_interactive_review: be able to edit a "maintenance_incident"
...
Fixes #64 .
2013-12-16 10:59:07 +01:00
Michal Čihař
e9793df634
Fixed typo in authentication
2013-12-09 19:26:15 +01:00
Marcus Huewe
daf5da2f18
Merge branch 'master' of https://github.com/bartosh/osc
2013-12-06 10:57:25 +01:00
Marcus Huewe
d04c36189e
- core.http_request: remove timeout cruft
2013-12-05 18:30:40 +01:00
Ed Bartosh
2d29c35f46
Fixed traceback in get_prj_results
...
The reason of the crash is that not all targets are always defined for
all packages. In our environment it happens when linked project is
created and sources have just been uploaded to one package.
Here is the crash:
Traceback (most recent call last):
File "../tools-testing/build-package", line 313, in <module>
sys.exit(main(sys.argv))
File "../tools-testing/build-package", line 309, in main
return build(apiurl, tproject, package, timeout)
File "../tools-testing/build-package", line 226, in build
hide_legend=True, csv=True)
File "/usr/lib/python2.7/site-packages/osc/core.py", line 5135, in get_prj_results
row = [pac] + [status[pac][tg] for tg in targets]
status[pac]]
KeyError: ('Fedora_18', 'i586', 'outdated')
Please note that this fix fixes only csv mode. For other modes osc still
can crash, but it's hard to reproduce here as we're not using them.
Signed-off-by: Ed Bartosh <bartosh@gmail.com>
2013-12-05 16:46:30 +02:00
f202fbd111
add option for deleterequests using auto-accept
2013-12-05 10:23:53 +01:00
Dinar Valeev
359d5c5a84
ppc64le can be built on ppc64
...
In case vm-type is KVM, we can build Little Endian packages on Big
Endian host.
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2013-12-03 08:25:13 +01:00
Andreas Schwab
b2e94ff3af
Fix wipebinaries
2013-12-01 19:01:58 +01:00
Marcus Huewe
2d7f644f44
Merge branch 'master' of https://github.com/thorstenb/osc
2013-11-28 11:52:02 +01:00
602841f14b
- fix upload of binary files via POST api call (use right content type)
2013-11-27 11:13:08 +01:00
Thorsten Behrens
9561a99d6b
Do not pass on unicode password from keyrings.
...
Seems at least gnome keyring returns a unicode string here
needlessly, which calling code then trips over.
2013-11-21 23:46:45 +01:00
99b3af9a41
- open 0.143 development
2013-11-21 10:32:17 +01:00
de3e141256
- roll 0.142 release
2013-11-21 10:27:49 +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
B S Srinidhi
bd3a6d2fc8
Include filelimit=0 when querying full serverside diff
...
Without this change, "osc rdiff -p" simply returns "(XXX lines skipped)"
2013-11-11 01:39:32 +05:30
Dinar Valeev
82a5350a11
Add ppc64le architecture
...
This commit adds PowerPC64 Little Endian architecture support
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
2013-11-06 09:11:05 +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
ad9a32ca8f
- handle also gateway timeout error code when watching build results
2013-10-22 17:58:53 +02:00
Marcus Huewe
e89bc8197b
- fixed #52 ("osc dumps on ci")
2013-10-22 13:49:14 +02:00
Marcus Huewe
b85beda33b
Merge branch 'master-develproject-unset' of https://github.com/saschpe/osc
2013-10-21 18:04:43 +02:00
Michael Schroeder
930974b4ab
prepare for the serviceinfo element having an xsrcmd5 in the error case
2013-10-18 14:58:18 +02: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
5ef2d4035c
Merge pull request #37 from k0da/master
...
Add ppc64p7 architecture
2013-10-18 02:31:30 -07: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
Sascha Peilicke
42f9f2bf3e
Set socket timeout to 0 by default.
...
As long as the timeout is >= 0, Python's _ssl module will still use
non-blocking I/O but not poll() but select(). poll(&fd, 1, TIMEOUT)
seems to block _at least_ TIMEOUT time regardless of any errors.
Currently, with SUSE's internal IPv6 layout, this meant a hang of a
second per binary to fetch during "osc build".
2013-09-30 17:23:02 +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
f5ec5734e3
- set mtime (if specified) after copying from .osc/ directory.
...
Patch by Roman Drahtmüller
2013-09-23 17:11:52 +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
744ce9155f
- release 0.141
2013-09-17 13:49:53 +02:00
Sascha Peilicke
529e1d4716
Fix copypac with _pattern files
...
Some _pattern packages do have indeed a _meta.
2013-09-16 17:27:01 +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
b2b2d54312
- oscerr.ServiceRuntimeError: fixed docstr
2013-08-29 15:35:40 +02:00
Marcus Huewe
1614123f82
- babysitter: catch ServiceRuntimeError
...
Note: it is probably better to raise a ServiceRuntimeError in
Serviceinfo.execute instead of Package.commit because "execute"
has all the information about the failing service...
2013-08-29 15:22:25 +02:00
Marcus Huewe
1176983a9a
- core.edit_submitrequest: fixed (logic) typo
2013-08-28 23:03:25 +02:00
Marcus Huewe
77f9030016
- core.Action: added basic support for a "group" action
...
Request.format_action is no staticmethod anymore because the formatting
of a "group" action needs the request id.
2013-08-28 23:00:35 +02:00
a8e7b6edd0
- report valid error on "group" request actions for now
2013-08-16 11:53:21 +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
1c412c14ee
- show warning on auto accepting requests
2013-08-14 18:30:43 +02:00
bdc772ef10
- sync appliance building using obsrepositories with bs_worker code
2013-08-14 18:30:43 +02:00
Marcus Huewe
420f61cdca
- OscConfigParser: check explicitly for python3 when importing "configparser" (patch by Kay Hayen <kay.hayen@gmail.com>)
...
There's a another python module around which is also called
"configparser" but which does not seem to be api compatible => so
do not import it.
2013-08-14 15:19:03 +02:00
2be979361e
All rename cases require delete=False
2013-08-13 11:54:11 +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
531251a86c
Fix file descriptor leaks during download
...
This makes it possible to build packages which
require more than 512 packages for building.
2013-08-12 18:31:27 +02:00
Marcus Huewe
bcacedcd96
- babysitter.run: added new argv parameter
...
This way other python scripts can execute osc commands via the
babysitter. Example:
>>> from osc import babysitter, commandline
>>> cli = commandline.Osc()
>>> babysitter.run(cli, ['osc', 'ls', '<project>'])
2013-08-07 23:25:31 +02:00
Marcus Huewe
aacbf6a03b
- core: added new _editor_command function
...
Used by "run_editor" and "_edit_message_open_editor" to retrieve
the editor command.
2013-08-03 19:34:47 +02:00
Marcus Huewe
132a2d128f
- run_editor: added fallback if shlex.split raises a SyntaxError
...
Fall back to a plain split in order to support an arbitrary $EDITOR
value.
2013-08-03 19:23:25 +02:00
Marcus Huewe
0e30e56ded
- run_editor: use shlex.split instead of plain split in order to build a proper cmd for $EDITOR
2013-08-03 17:20:03 +02:00
Ionuț Arțăriși
2dac43aecf
rephrase trust prompt
...
'always' is a key word in that sentence and it should be the first word;
it also sounds like better English this way
2013-07-25 17:19:04 +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
Miroslav Suchý
12ffb4e3c4
correctly refer to exception
...
this is left-over from 87d354e1a0
Addressing:
Traceback (most recent call last):
File "/usr/bin/osc", line 26, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 60, in run
return prg.main()
File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 335, in main
self.postoptparse()
File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 136, in postoptparse
override_verbose = self.options.verbose)
File "/usr/lib/python2.7/site-packages/osc/conf.py", line 873, in get_config
add_section(conffile, url, user, passwordx)
File "/usr/lib/python2.7/site-packages/osc/conf.py", line 712, in add_section
except OscConfigParser.ConfigParser.DuplicateSectionError:
AttributeError: class OscConfigParser has no attribute 'ConfigParser'
2013-07-17 10:22:29 +02:00
41adda44f6
- add support for manual release of sources with binaries (FATE #315250 )
2013-07-08 15:59:14 +02:00
Marcus Huewe
2b9a7d166e
- fixed "get_prj_results(...)" when calling with status_filter='U'
2013-07-04 22:15:14 +02:00
0437ab9be0
- support for kiwi appliance builds using obsrepositories:/ directive
2013-07-04 16:41:59 +02:00
Marcus Huewe
87aaa9aac4
- checker.check: always close fd
2013-07-04 14:24:29 +02:00
1d7cb3d1db
- add armv6hl definition
2013-07-04 11:04:31 +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
668a017565
- open 0.141 development
2013-06-21 15:10:54 +02:00
dbd38296fa
- tag it as 0.140
2013-06-20 10:46:37 +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
0ac1d32945
- oscssl.verify_certificate: also print cert info if http_debug is set
...
If http_debug is set we redirect sys.stdout to an StringIO
instance in order to do some header filtering (see conf module)
so we have to use the "original" stdout for printing the certificate
information.
2013-06-15 08:53:26 +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
467757b76d
- do not show unpublished information in dirty situation
2013-06-13 16:42:25 +02:00
da8c123d85
- show the situation that packages succeeded to build, but are not yet published (way to many questions due to that)
2013-06-13 16:27:58 +02:00
Dinar Valeev
51b549db3a
Add ppc64p7 build definitions
2013-06-07 13:28:57 +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
Marcus Huewe
4736763c22
- reverted commit 9acda37d5f
...
Now "get_built_files" always returns a tuple which consists of two strings.
So no cast is needed anymore.
2013-06-03 16:32:39 +02:00
Danny Al-Gaaf
96183f41f3
OscConfigParser.py: silence pylint false positive E0702
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 15:20:56 +02:00
Danny Al-Gaaf
a3cf8e8552
OscConfigParser.py: fix __delitem__
...
Two issues:
- There is no _find() member in ConfigLineOrder. Use _find_section()
instead
- Use 'key' instead of 'line' as argument for _find_section() since
'line' is used before assignment.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 15:14:15 +02:00
Danny Al-Gaaf
a5d14bfd48
checker.py: "More than one statement on a single line"
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:58:58 +02:00
Danny Al-Gaaf
6a6b25f9cb
fetch.py: fix "More than one statement on a single line"
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:58:15 +02:00
Danny Al-Gaaf
f889edabfa
core.py: add missing spaces
...
Add missing spaces around operators and spaces after comma.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:56:24 +02:00
Danny Al-Gaaf
3ac21eb1e3
build.py: add missing spaces
...
Add missing spaces around operators and spaces after comma.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:47:16 +02:00
Danny Al-Gaaf
b55d4d6b99
util/archquery.py: remove unnecessary semicolon
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:30:08 +02:00
Danny Al-Gaaf
2f197c698b
build.py: remove unnecessary semicolon
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:28:59 +02:00
Danny Al-Gaaf
2062333977
core.py: fix bad indentation
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:26:58 +02:00
Danny Al-Gaaf
7e3a901596
build.py: fix bad indentation
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:19:44 +02:00
Danny Al-Gaaf
6db0431cb7
fetch.py: fix bad indentation
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:16:58 +02:00
Danny Al-Gaaf
e1ea202802
cmdln.py: fix reimport of 're'
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:13:19 +02:00
Danny Al-Gaaf
b99a05e167
cmdln.py: remove some reimports of sys
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 14:07:04 +02:00
Danny Al-Gaaf
c84f413c10
oscssl.py: remove reimport of m2 from M2Crypto
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-27 13:47:48 +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
Danny Al-Gaaf
9acda37d5f
build.py: add cast to be able to use str.splitlines()
...
Cast some variables to str() to be able to use str.splitlines().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-26 20:25:44 +02:00
Danny Al-Gaaf
e6f8a1a7b3
cmdln.py: fix "More than one statement on a single line"
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-26 15:27:05 +02:00
Danny Al-Gaaf
f0a92430e8
cmdln.py: fix bad indentation
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-26 11:24:17 +02:00
Marcus Huewe
cdd73ba983
- fetch.OscFileGrabber: fix for commit 9ab5a37113
...
We still have to support older urlgrabber versions where the class
"URLGrabber" is an old-style class and therefore we cannot use a "super(...)"
call. This fixes issue #32
2013-05-23 15:04:20 +02:00
eea716f11f
- support listing of deleted source files "ls -D $PROJECT $PACKAGE"
2013-05-17 10:37:51 +02:00
Gui Chen
9ab5a37113
fix OscFileGrabber missing 'opts' attribute issue
...
given urlgrabber version 3.9.1, MirrorGroup trys to access
grabber.opts, but the derived grabber OscFileGrabber hasn't
this attribute
Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-05-14 10:16:10 +02:00
Andreas Schwab
ae2f9515ef
Fix examples in link_template
2013-05-10 20:57:03 +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
41661d741a
- babysitter: print out headers in case of status 5XX
2013-05-02 22:33:04 +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
Marcus Huewe
5e0ef46aed
- fixed issue #28 ("calling with -H option causes traceback")
2013-05-02 14:55:31 +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
Marcus Huewe
0c0ffe50fb
- Serviceinfo.execute: always cleanup (remove) tmpdir
...
This fixes issue #24 .
2013-04-26 20:44:53 +02:00
9595aa9f09
- show also groups in maintainer/bugowner search
2013-04-22 17:09:33 +02:00
Marcus Huewe
a8def0f433
- build: fixed typo (patch by darix)
...
typo was introduced in commit d3648be24b
2013-04-22 16:26:31 +02:00
Marcus Huewe
51e6fca88f
- fetch: check if errno == 14 before accessing the URLGrabError's code attribute
...
Unfortunately the class URLGrabError does not define constants for the
different error codes therefore we have to hardcode the errno (alternatively
we can define them in our fetch module).
2013-04-22 15:54:55 +02:00
Marcus Huewe
5a8baf9b88
- util.ar: do not import StringIO from the cStringIO module
...
The class ArFile inherits from StringIO but StringIO from cStringIO
is just a function (this got broken by commit 87d354e1a0
).
2013-04-22 09:24:48 +02:00
Marcus Huewe
439dafbdc5
- ServiceInfo.execute: fixed NameError
2013-04-22 09:17:38 +02:00
Marcus Huewe
d28cddfede
- use a buffer instead of a memoryview if python version < 2.7
...
(forgot to remove this code in commit 034d2e4746
)
2013-04-18 15:04:58 +02:00
Marcus Huewe
034d2e4746
- http_request: do not use a memoryview for python27
...
python27's mmap does not behave like a bytearray therefore we
cannot directly pass it to the memoryview.
2013-04-18 14:19:45 +02:00
2b06180efa
- anotehr python3 syntax fix
2013-04-16 15:57:30 +02:00
Michal Vyskocil
1cd12ac566
python3 compatibility: fix a man page generation
...
Fixes a fail on a building of a documentation
http://lists.opensuse.org/opensuse-buildservice/2013-04/msg00099.html
2013-04-16 15:51:14 +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
f6edc186c2
python3 compatibility: unicode
...
reintroduce unicode function - despite the fact I am pretty sure the
usage is plain wrong, because code says - return a unicode string from
utf-8 encoded one, which is probably not what was intended. I bet
something like encode the input as utf-8 was wanted.
2013-04-16 10:51:42 +02:00
Michal Vyskocil
5cc72902e0
python3 compatibility: raw_input
...
raw_input has been removed and equals to input in py3. Unfortunatelly no
__future__ statement exists for that. Ensure all modules uses
osc.core.raw_input except osc.cmdln, where there is NameError way
implemented.
2013-04-16 10:51:41 +02:00
Michal Vyskocil
b534ae0a6a
python3 compatibility: raise
...
support for old style exceptions has been removed from python3
2013-04-16 10:51:41 +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
f814fe4af4
python3 compatibility: idioms
...
more idiomatic code - changes
* type(foo) == bar to isinstance(foo, bar)
* changes the uneeded .sort calls by sorted()
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
a134074417
python3 compatibility: funcattrs, methodattrs
...
the introspection names changed a lot in python3, so lets have two
implementations used by respective runtime
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
Michal Vyskocil
c5a235ed78
python3 compatibility:
...
python 2.6 does not have memoryview, so lets define it as buffer
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
67d45a5324
- request_interactive_review: offer diff option for a maintenance_incident
2013-04-15 17:52:46 +02:00
Marcus Huewe
9e6e76c712
- do_localbuild: made "arch" argument optional
2013-03-25 20:28:27 +01:00
Sascha Peilicke
c31d7d5671
Fix typo in default build-root path
2013-03-20 15:43:06 +01:00
Michael Schroeder
1299b73efa
fix with/without definitions, --with should not define %_without and vice versa
2013-03-20 15:38:25 +01:00
320238350f
- reset retry counter on 404 answer for all python 2.7.x versions
2013-03-20 14:11:58 +01:00
b0ddb63432
- Abort when the server is not answering with 200 or 404 when downloading _pubkey files
...
- really use the internal rpm signature check
2013-03-19 17:17:14 +01:00
d082c75958
- drop the support for deprecated cbinstall and cbpreinstall directives
2013-03-19 08:17:13 +01:00
948687c4cf
- do not crash on manual configured buildroot
2013-03-18 17:41:57 +01:00
Marcus Huewe
56979493d6
- fixed grammar error
2013-03-08 19:09:29 +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
49eeda0a17
- core.edit_message: changed message file opening (only affects vim/vi users)
...
With the current implementation it's possible to detect if the user saved
the message file or if he/she just quits the editor (e.g. to abort the commit).
2013-03-08 17:17:45 +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
Marcus Huewe
ec595d361b
- core.edit_message: use a more informative messsage if the default template wasn't changed
2013-03-06 17:34:49 +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
Sascha Peilicke
f9a718f662
Provide a better default build-root.
...
Previously it was /var/tmp/build-root but
/var/tmp/build-root/%(repo)s-%(arch)s makes much more sense.
2013-02-27 13:43:05 +01:00
Marcus Huewe
e2dc1d7fe6
- fixed bnc#801027 ("osc starts with a traceback")
2013-02-25 18:07:27 +01:00
907e5f67a5
- open 0.140 development
2013-02-25 15:44:01 +01:00
74f950d409
- prepare 0.139 release
2013-02-25 15:40:26 +01: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
Marcus Huewe
93c0a2d88f
- core.Project.update: fixed deletion of packages with local state "!" and which don't exist on the server side
2013-02-13 18:50:01 +01:00
Marcus Huewe
c8bfad3661
- core.edit_message: check if the user modified the log template
...
If the user didn't change the default template it either means that
he wants to use the default message or that he wants to abort the process.
So if the template wasn't modified osc will prompt:
Commit template was not changed
a)bort, c)ontinue, e)dit:
2013-02-13 11:42:34 +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
b358e7085f
- remove debug output
2013-02-11 13:01:58 +01:00
d21bbe48fd
- fix display of time in jobhistory when the job builds more than one day
2013-02-11 11:19:02 +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
ef5b892285
Merge pull request #19 from andreas-schwab/master
...
_submit_request: add missing newline before diff
2013-02-05 23:16:18 -08:00
Dmitry Marakasov
8e9e8c492c
Raise exception when there're no CA certificates
...
This is more useful and meaningful error message than M2Crypto's
"ValueError: cafile and capath can not both be None." when neither
of cafile and capath is defined for load_verify_locations call.
2013-02-06 03:50:18 +04: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
f1c55334b3
- add aarch64 build definitions
2013-02-03 13:25:32 +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
1106eb5166
- open 0.139 development
2013-02-01 12:19:06 +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
1fd7eda7c3
- prepare 0.138 release
2013-01-31 16:44:14 +01:00
d84bc081ef
- disable keyring usage by default
2013-01-31 16:03:31 +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
b55721a679
- warn about empty passwords to see keyring setup errors
2013-01-24 16:32:33 +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
63e2bcabf7
- corrected some docstr which were added in a2f1cc25b2
2013-01-16 14:48:15 +01:00
Marcus Huewe
12c8736129
Merge branch 'master' of https://github.com/aspiers/osc
2013-01-16 14:38:13 +01:00
Adam Spiers
a2f1cc25b2
osc.core.Project: add some docstrings
2013-01-15 18:32:01 +00: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
fc7e26fef1
- open 0.138 development
2012-12-04 16:47:42 +01:00
14c41ebdf8
- version 0.137
2012-12-04 16:44:46 +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
ada0c02f92
- avoid crashes for requests without repository target
2012-11-20 15:29:30 +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
3af97625d4
- support prefer pkgs for kiwi builds
2012-11-08 09:01:19 +01:00
a45c602614
- fix search OBS api call /search/project_id should /search/project/id (bnc#769948)
2012-11-06 09:16:13 +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
Alexey Sidorin
22fb12b66f
build.py: bugfix: incorrect determination of hostarch available for build
...
* x86-64 should be able to build for i586 hostarch but it doesn't.
2012-10-17 17:39:22 +04:00
Marcus Huewe
161b9ca274
- Fetcher.__fetch_cpio: split cpio request into smaller requests if the server returns code 414
2012-10-10 17:05:26 +02:00
15b27b7ff1
- add osc mr --cleanup option
2012-10-10 15:55:10 +02:00
Marcus Huewe
63935f86e4
- open 0.137 development
2012-09-27 22:43:55 +02:00
Marcus Huewe
c42a0ad4a1
- core: fixed __version__
...
The new release will be 0.136
2012-09-27 21:45:19 +02:00
Marcus Huewe
dc134de6d5
- build: fixed indention (use spaces instead of tabs)
2012-09-27 21:43:45 +02:00
Marcus Huewe
a8d26db675
Merge branch 'master' of github.com:openSUSE/osc
2012-09-20 01:20:23 +02:00
Marcus Huewe
dd48ee4730
- fixed bug #10 ("Traceback of an error in an exception handler")
...
Changed behaviour of "osc mv". Now it is also possible to move files
between different packages, that is "osc mv pkg1/foo pkg2/bar".
2012-09-20 01:18:38 +02:00
Michal Vyskocil
4ab6f905b3
make commit --noservice work for commitExtPackage
2012-09-18 22:39:25 +02:00
eef243f6be
Update help text
2012-09-10 13:49:21 +02:00
4b44e7470b
update default list of request states
...
Hi,
"declined" was some time ago changed to be considered an "open" request state.
the default behavior of "osc rq list" is IMHO to show open requests (requests
in state new or review), so I'm attaching a patch that adds "declined" as
well.
Tia,
Dirk
From 73fd10a2203be8e9dc215106648b2d9686d8fdc5 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dmueller@suse.com>
Date: Mon, 10 Sep 2012 10:40:48 +0200
Subject: [PATCH] add 'declined' to list of default states for rq list
osc rq list should show all currently "open" requests. "declined"
is an open request state, so it should be included by default.
2012-09-10 11:29:16 +02:00
Michael Schroeder
ab28b8f492
- fix build result listing for arch
2012-08-13 12:54:38 +02:00
Cristian Rodríguez
0770470596
watchout the BEAST...
...
This patch workarounds the BEAST attack in the client side
making OSC to prefer TLS v1.1 or v1.2 ciphers/key exchanges
when available.
Now, as long as openSUSE API webservers do not support
these protocols it will prefer the RC4-SHA1 combination to
be in the safe side.
2012-07-15 23:20:19 -04:00
Ludwig Nussel
a0cad9f88d
display source packgae name when searching for binaries
2012-07-03 14:16:40 +02:00
bd9d628ccc
- and escape correctly
2012-06-30 11:23:43 +02:00
52014ba11e
- fix creator name in forwarded requests
2012-06-30 11:20:12 +02:00
559409a880
- language change from OBS special to standard SCM terminilogy
2012-06-29 11:38:11 +02:00
68b59f29a1
- do not forward submit requests which do link to original request target anyway
2012-06-29 10:57:29 +02:00
4d83996da2
- set version 0.135
2012-06-28 11:21:26 +02:00
d6aed9858d
- default to forward submit requests
2012-06-27 10:34:20 +02:00
Marcus Huewe
6ad15b3832
- fixed github issue #6 ("Problems with osc and gnome-keyring")
...
check if user and password exist in the gnome keyring entry (a non existent
password is most likely an error so print a warning)
2012-06-26 21:18:28 +02:00
09c66f1d3d
- better use standard function for submit request (adds revision by default)
2012-06-26 17:48:39 +02:00
ceb3265a9d
- add request forward functionality similar to webui
2012-06-26 17:13:33 +02:00
e0a5b7052a
- fix waiting function of results
2012-06-21 11:09:33 +02:00
Marcus Huewe
6e34b410fa
- request_interactive_review: do not abort if the user aborts "edit_message"; instead display the prompt again
2012-06-15 00:12:06 +02:00
Marcus Huewe
e4090f7932
- support "osc rq co <id>" also for action type "maintenance_release"
2012-05-04 17:18:46 +02:00
Marcus Huewe
60ed892beb
- "osc review show -G group" respect group in interactive review
...
(Note: the group is ignored when using the --edit option)
2012-05-03 22:30:50 +02:00
79d970f885
- support also plain "osc mr" from package checkout
2012-05-03 13:51:11 +02:00
Marcus Huewe
b38dd0191f
- request_interactive_review: automatically accept/decline a review for a specific group (if a group was specified)
...
To enable this feature set the newly introduced "review_inherit_group"
config option to True.
2012-04-27 15:04:06 +02:00
Marcus Huewe
7ce054b5cc
- request_interactive_review: also show d(i)ff and (b)uildstatus for maintenance release actions
2012-04-27 14:45:28 +02:00
Marcus Huewe
2372439b00
- get_review_list: only consider requests which are in state review
...
This fixes a bug which was introduced in
commit e65bd21c3b
2012-04-27 00:27:31 +02:00
5703b90ca1
- support building with "--alternative-project --noinit" combination of not existing package.
2012-04-11 11:57:03 +02:00
747bca7741
- do not crash when give 5 arguments to "osc whatdependson" (bnc#719691)
2012-04-04 14:34:47 +02:00
cd89d91d13
- fix "osc result" handling (bnc#710682)
2012-04-04 10:28:27 +02:00
Marcus Huewe
e65bd21c3b
- "osc review": only show new reviews if by_user, by_group etc. is specified
...
The current implementation is so ugly...
2012-04-03 19:21:06 +02:00
Michael Schroeder
8df38af7e3
support archlinux builds
2012-04-03 16:00:06 +02:00
c744710145
- use right apiurl on "osc meta $KIND" command (bnc#640770)
2012-04-02 13:38:06 +02:00
6bfa5b0c31
- add also requires example to pattern
2012-04-02 10:55:18 +02:00
08d2b8d045
- open 0.135 development
2012-04-02 10:53:12 +02:00
34bee95834
- fix pattern.rng url again and add a more complete example (bnc#602330)
2012-04-02 10:52:29 +02:00
Marcus Huewe
5b3725096f
- fixed #754774 ("'osc service rr' optional arguments don't work; doesn't match 'remoterun'")
2012-03-29 19:33:41 +02:00
Marcus Huewe
e2aa5cc65c
- do_update: rewrote code path for expanding/unexpanding a wc
...
The way for determining the revision was completely "wrong".
2012-03-28 23:14:28 +02:00
Marcus Huewe
25c4cb1cc1
- do_update: print the correct revision when unexpanding the wc
...
The old "p.linkinfo.lsrcmd5" was completely misleading because update to the
latest rev...
2012-03-28 22:58:09 +02:00
Marcus Huewe
081037e913
- do_update: use "rev" instead of "lsrcmd5" when running "osc up -u"
2012-03-27 18:38:00 +02:00
8d5cc0a8d6
- fix link to OBS maintenance chapter
2012-03-26 15:46:38 +02:00
Ard
bd9ab782d4
Fix small typo in conf.py
2012-03-24 20:41:43 +13:00
82880e9572
- improve error message when calling patchinfo in standard package.
2012-03-23 09:37:08 +01:00
874e269887
- maintenance request is adding now revisions to sources
2012-03-15 12:44:38 +01:00
ce9f504105
- add unlock command for osc 0.134.1
2012-03-15 09:55:37 +01:00
434879dc4b
- make the complete different action which can not be avoided by command line more understandable ....
2012-03-12 14:49:53 +01:00
665d1b6501
- 0.134.0 release
2012-03-12 14:36:59 +01:00
Ludwig Nussel
b6069c6946
automatic fallback to maintenance request
...
alternative would be to raise exception and have calling code implement
the fallback
2012-03-12 11:00:36 +01:00
Ludwig Nussel
0cdc695c21
add message param to delete call
2012-03-12 11:00:36 +01:00
Sascha Peilicke
588efa69fc
Fix copy-paste error
2012-03-08 14:42:52 +01:00
Marcus Huewe
346b754941
- added "review show" command to help text
2012-03-06 13:25:47 +01:00
Marcus Huewe
65858bb6d3
- support "review show <id>" (alias for "request show <id>")
2012-03-06 13:22:25 +01:00
effe3835ba
- strip terminal control chars, except new lines from build logs (CVE-2012-1095)
2012-03-05 10:44:09 +01:00
6860e7edff
- set vrev on current links in link files
2012-03-02 15:44:15 +01:00
15da5e9580
- follow changed issue xml schema
2012-02-29 15:57:58 +01:00
e0d045cdea
- do not crash on project wide incident requests view
2012-02-29 12:22:35 +01:00
96042a3194
- simplify "setlinkrev" call and do the right thing by default.
2012-02-29 11:51:40 +01:00
793d9ec961
- create submit requests with correct revisions when target is not link target and a service is used. We had missing service files so far after request accept.
2012-02-24 11:50:24 +01:00
Sascha Peilicke
d8904685da
[osc] Also provide '--noservice' parameter to 'osc commit'.
...
It is already used for 'osc build' and much shorter than '--skip-local-service-run'
2012-02-23 14:27:04 +01:00
a9b51e3571
- take care about build --noservice
2012-02-23 13:21:22 +01:00
Stephan Kulow
770a3e6172
don't only calculate repofilename but also filename according to 'binary'
...
attribute - otherwise cache access won't work
2012-02-22 14:12:06 +01:00
Stephan Kulow
7c6653e831
avoid errors when checking rpm signkeys on files that are not rpm
2012-02-22 13:28:19 +01:00
Stephan Kulow
b1502a5715
support buildinfos with binary present - and don't die with XML
2012-02-22 13:28:19 +01:00
Stephan Kulow
d449a12c09
change the project meta default to use snapshot repo for factory
2012-02-22 13:28:19 +01:00
d50f06fec1
- follow changed policy for inident requests
2012-02-21 18:02:21 +01:00
Marcus Huewe
7fc2f02f33
- do_results: ignore _oldstate key when printing the results in csv format
2012-02-21 14:17:57 +01:00
00286be354
- don't crash on invalid attribute names
2012-02-21 12:41:24 +01:00
Marcus Huewe
09a7f60ede
- fixed "osc results --csv" in a project wc
2012-02-21 13:13:36 +01:00
fbb032ea95
- show maintenance_incident request informations complete
2012-02-20 11:21:30 +01:00
9960072d5c
- set releaseproject in incident requests
2012-02-15 17:08:06 +01:00
3820c19c9d
- fix cleanup handling of maintenance request
2012-02-15 13:13:44 +01:00
39b85af5d9
- use hostarch from buildconfig instead of own architecture guessing
2012-02-09 15:13:04 +01:00
ba08ccb48a
- add single-package-maintenance branch
2012-02-09 10:04:44 +01:00
06bf885524
- do not crash when not creating incident request ( #745842 )
2012-02-08 15:56:46 +01:00
Ludwig Nussel
f760282ea4
whois: display user info suitable for c&p in mail client
...
allow multiple arguments
2012-02-07 11:08:32 +01:00
Ludwig Nussel
842df7e511
xml parse result of branch
2012-02-07 11:04:45 +01:00
Ludwig Nussel
f53e40b2fd
sr: use link target package also when called with one argument
2012-02-07 11:03:21 +01:00
475867cc64
- make file system configurable
2012-02-04 17:05:17 +01:00
1ab773344b
- fix syntax error
2012-02-04 11:01:08 +01:00
39233d3b93
- do not move back service generated files when service failed
2012-02-04 10:41:54 +01:00
Adam Spiers
3ed94d9694
Fix 'chache' typo
2012-02-02 10:49:17 +00:00
Michael Schroeder
039d662b7a
fix typo
2012-01-30 18:09:30 +01:00
Stephan Kulow
7232c2eab8
remove debug code from osc sr
2012-01-30 13:13:48 +01:00
4466a7f701
- fix superceeding of submit requests, match all exact matches independend of user and include "declined"
2012-01-26 13:27:44 +01:00
0b79374542
- fix default for open requests (include 'declined')
2012-01-26 13:27:44 +01:00
e54da78499
- add "osc my work" which works in same way as webui
2012-01-26 13:27:44 +01:00
Michael Schroeder
9d9420e00b
revert the part of 2e2deb3e
that broke rev/cicount setting in linkpac
2012-01-25 15:51:11 +01:00
Pavol Rusnak
2c9c719c9e
fix proxy adding the Content-Length header twice
2012-01-25 14:58:55 +01:00
8fe6a030ef
- fix submit request of package
2012-01-24 12:03:34 +01:00
c356771449
- fix error handling when the api request handle reports a generic error
2012-01-24 11:51:22 +01:00
4aa3463438
- fix description of "osc results --watch" switch
2012-01-24 09:59:23 +01:00
da85dcd669
- handle timeout situation in "results -w" call
2012-01-23 18:18:51 +01:00
49d91c373d
- add "osc results --watch" command to wait for build results in efficient way
2012-01-23 17:26:53 +01:00
cb78230347
- ask user to create maintenance incident when submit request fails at release project
2012-01-23 14:12:17 +01:00
a2030b9f15
- add "request setincident" command
2012-01-19 11:43:37 +01:00
11be969b77
- maintenance requests accept package lists as source and target incidents to be merged in
2012-01-19 11:36:57 +01:00
Ludwig Nussel
0bdd0a676e
slash separate sm output
2012-01-18 16:50:47 +01:00
Ludwig Nussel
0f2e8e257d
relax the cipher string to make it work with real world deployments again
2012-01-18 16:50:46 +01:00
Ludwig Nussel
1f8bed8221
don't set SSL_OP_ALL
...
SSL_OP_ALL contains SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS which actually
fixes a weakness in SSL.
2012-01-18 16:50:46 +01:00
Michael Schroeder
4a1cc2cc88
- the help says 'implies --binary', make it so
2012-01-13 17:43:32 +01:00
Michael Schroeder
754897d905
add --binaryversion option
2012-01-13 15:18:33 +01:00
e0683d074c
- use qemu as fallback when arch is not supported (unable to test it because of broken binfmt misc)
2012-01-12 13:47:31 +01:00
67be93e1a4
- do not overwrite package meta on "copypac" by default
2012-01-09 14:30:52 +01:00
94a670e067
- patchinfo call can work without checked out copy now
2012-01-09 11:29:11 +01:00
bb373a9c9d
- use correct target package name on branch result (when --extend-package-names or when devel package is set)
2012-01-05 17:15:39 +01:00
3651508724
- use cmd=branch&dryrun=1 for search of maintained packages to get same result as on branching
2012-01-05 16:16:13 +01:00
Dirk Mueller
836423d2cf
fix handling of -u parameter in mbranch
2012-01-05 14:41:02 +01:00
Dirk Mueller
285dc40a8a
fix handling of --attribute in mbranch
2012-01-05 14:40:57 +01:00
Sascha Peilicke
dba42e5aa5
Don't break filenames containing spaces, only chop of trailing newlines.
2012-01-05 14:00:10 +01:00
4e7867e3cd
- fix "ldiff" command, it crashed due to inexistent md5sum in linked package
2012-01-04 13:27:31 +01:00
Marcus Huewe
3aeff9e0d0
- removed debug stuff...
2011-12-20 18:42:03 +01:00
f8bab97e5a
- open 0.134 development
2011-12-19 14:09:47 +01:00
cff2298b12
- 0.133 release
2011-12-19 14:06:25 +01:00
b3e1321ad6
- fix patchinfo new creation call
2011-12-16 15:29:54 +01:00
89edcc32ec
- move declined requests in "my rq" to the bottom
2011-12-16 09:44:57 +01:00
bede808271
- offer to supersede requests in declined state on creating a new submit request
2011-12-15 15:50:11 +01:00
c076e2b4d2
- show declined requests to the creator on "my rq" function
2011-12-15 15:35:11 +01:00
2e2deb3ec8
- support link or branch from not-yet-existing-packages to pre-define the later submit target
2011-12-15 15:12:41 +01:00
Sascha Peilicke
2950d89be4
Clarify link / branch difference
...
Should fix bnc#723578
2011-12-12 12:57:13 +01:00
0d1e9d22f7
- fix error handling when a service breaks
2011-12-12 10:04:21 +01:00
46555269e6
- fix typo
2011-12-06 13:22:50 +01:00
7bbfd64854
- show build result details always when existing (eg. showing build host when in building state)
2011-12-05 23:23:49 +01:00
a5edbb201a
- add support for new branch --extend_package_names
2011-12-01 15:54:50 +01:00
f47e8f16c7
- support updating of existing _patchinfo files
2011-11-30 10:52:50 +01:00
4eca9d124a
- forgot another place to enable add_repositories functionality
2011-11-28 14:26:30 +01:00
fdde366daf
- be a bit more verbose on copypac comment (to see which options where used)
2011-11-25 13:05:41 +01:00
b659ad5285
- support new branch add_repositories api call
2011-11-25 10:12:16 +01:00
Marcus Huewe
da745728cc
- do_log: support -r rev1:rev2 (revision ranges)
...
This obviously only work for "plain" revisions
2011-11-22 20:13:52 +01:00
ce1bcee552
- support "serveronly" source service
2011-11-22 14:47:11 +01:00
49cdfa4fe3
- add --keep-link option to copypac command
2011-11-21 12:33:32 +01:00
Marcus Huewe
34454ac91d
- do_vc: fixed #719754 ("osc vc fails with 'User not found'")
2011-11-18 22:48:50 +01:00
Marcus Huewe
8971959187
- fixed #704939 ("osc dies when the config file is supplied via STDIN")
2011-11-18 22:32:10 +01:00
Marcus Huewe
18ad5fcd5a
- conf: always use write_config when writing the config file
2011-11-18 22:27:38 +01:00
Marcus Huewe
ac10fd798d
- do_getbinaries: minor cosmetic change
2011-11-18 21:52:30 +01:00
Marcus Huewe
da88ec0a39
- fixed #713178 ("osc getbinaries in project scope throws error")
2011-11-18 21:51:03 +01:00
Marcus Huewe
64224f9668
- core.set_link_rev: return revision
...
- do_setlinkrev: print the revision which is stored in the 'rev' attribute (if rev is not None)
2011-11-17 21:33:57 +01:00
e945409bb8
- add "locked" state #729873
2011-11-11 20:16:57 +01:00
0f1ae28bf0
- new patchinfo is now default on server, old format not anymore supported on purpose.
...
So removing the switch is also on purpose to make people aware of it.
2011-11-11 10:51:24 +01:00
Sascha Peilicke
2ce8484dc8
Support unshortened diff and use it by default.
...
Fixes bnc#518304
2011-11-09 11:51:43 +01:00
Marcus Huewe
0973931793
- rewrote b190f27d00
(support "osc co --output-dir..." option)
...
The initial version was written by Ed Bartosh <eduard.bartosh@intel.com>
2011-11-02 21:05:10 +01:00
Marcus Huewe
17a5242110
Revert "implemented --output-dir command line option"
...
This reverts commit b190f27d00
.
Do not use "pathname" for this. Its sole purpose is to print out the
"correct" pathname to the user.
The code broke the Project's class update mechanism
2011-11-02 21:05:09 +01:00
eac124f9f6
- support source cleanup on maintenance incidient requests
2011-10-31 12:06:52 +01:00
Sascha Peilicke
568410f46f
Don't choke on unicode characters in filenames upon checkout.
...
Fixes bnc#714061
2011-10-19 10:51:50 -08:00
Marcus Huewe
6cd541967e
- core.request_interactive_review: don't execute review code path if no reviews are present
2011-10-10 22:17:40 +02:00
Ed Bartosh
b190f27d00
implemented --output-dir command line option
2011-10-10 17:06:58 +02:00
321cbdc9ff
- add armv7l, armv6l and armv5l archs for building
2011-10-09 11:23:00 +02:00
fade823e06
- exclude also nosrc.rpm on getbinaries
2011-10-09 11:23:00 +02:00
Marcus Huewe
b5f21a4a8a
- core.Package.commit: fixed _service handling
...
Now the testsuite succeeds again.
Note: we need some testcases for commits with a _service file
2011-10-07 14:13:14 +02:00
Marcus Huewe
7995613991
- revert 3834263171
...
- fixed "parse_repoarchdescr": don't ignore repo if the repo name is a
supported arch name
2011-09-30 14:57:03 +02:00
3834263171
- fix building with "osc build $REPO $ARCH"
2011-09-30 14:26:58 +02:00
511ebf9d89
- don't say to download cpio (why just one package ?;)
2011-09-30 07:42:57 +02:00
c0618f3ede
- make osc build working on debian arm
2011-09-28 15:32:57 +02:00
da7445c192
- become curl compatible, switch to "PUT" method when using -T upload file parameter
2011-09-23 12:11:14 +02:00
Marcus Huewe
f98758e902
- config_set_option: set override_no_keyring and override_no_gnome_keyring to the current config defaults when calling "get_config"
2011-09-21 01:52:04 +02:00
Marcus Huewe
5707f2c6f4
- request_interactive_review: added support to accept/decline a specific review instead of all
2011-09-16 17:32:42 +02:00
d3dd8539d9
- fallback to "build --local-package" if it does not exist instead of complaining
2011-09-12 16:15:19 +02:00
Ruediger Meier
9c004acf34
- re-add but ignore deprecated option --skip-validation
...
Doing this to not brake scripts where this option is used.
This Patch is a follow-up of
568612ce
"- drop hardcoded source validator executions"
which has not been released yet.
2011-09-11 17:13:32 +02:00
Marcus Huewe
27ca263d37
- do_revert: added note again which was removed in the previous commit (only affects the docstring)
2011-09-09 19:55:19 +02:00
Ruediger Meier
57329183d1
osc revert, how to do it?
...
On Friday 09 September 2011, Marcus Hüwe wrote:
> > Is this the supposed behavior?
>
> No - I just fixed it in git master.
Thx!
BTW
even I've investigated it for svn (because osc may supposed to be similar).
But the misbehavior is the same there. Do you think that's a bug in svn too?
At least svn reverts completely when doing
svn revert -R .
Probably would be also nice to say something about it in osc revert --help,
e.g. like this
From 3fa9bb1ac29c623f8ee24f435e7eebd073273e1a Mon Sep 17 00:00:00 2001
From: Ruediger Meier <ruediger.meier@ga-group.nl>
Date: Fri, 9 Sep 2011 19:08:50 +0200
Subject: [PATCH] - do_revert: add help msg about reverting wc entirely
2011-09-09 19:53:40 +02:00
Marcus Huewe
5007751215
- do_revert: also revert added files by default
2011-09-09 17:37:01 +02:00
Marcus Huewe
6d1372c6f8
- get_prj_results: added '?' to legend
2011-09-07 18:33:07 +02:00
Marcus Huewe
30ba376302
- do_build: also consider "local_service_run" config option
2011-09-07 16:53:11 +02:00
Marcus Huewe
3683d9550d
- added "local_service_run" config option
...
can be used to permanently disable the local service run on commit
(default: enabled)
2011-09-07 15:19:54 +02:00
568612cedc
- drop hardcoded source validator executions
2011-09-07 13:55:05 +02:00
f80ce9c663
- do not fail on empty service parameter values
2011-08-29 17:06:12 +02:00
Marcus Huewe
d3b08ff0fb
- core.Project: yet another fix for the update method (handle deleted packages correctly)
2011-08-25 13:47:19 +02:00
Marcus Huewe
fc00d2621c
- core.Project: fixed update method
...
handle missing packages (state "!") more gracefully
2011-08-25 13:47:19 +02:00
da52ea1331
- fix crash on removal of local _service file
2011-08-24 12:06:34 +02:00
cdc21c6011
- yet another fix for old OBS instances
2011-08-23 16:03:58 +02:00
c140a1d975
- make osc working with OBS 2.1 again
2011-08-19 15:18:55 +02:00
Sascha Peilicke
097daf311b
Fix tests/test_repairwc.py, there's no 'urllib22' yet ;-)
2011-08-18 16:02:34 +02:00
Sascha Peilicke
3619f392a0
Reopening reviews only works for requests in state 'new' or 'review'
2011-08-18 16:02:34 +02:00
Sascha Peilicke
7acf236662
Honor PEP-8 in osc/conf.py. Includes moving all imports to the top (and
...
importing only once).
2011-08-18 16:02:34 +02:00
cf1bd2d5df
- support source services using OBS project or package name
2011-08-18 11:32:19 +02:00
Egbert Eich
db2e538efd
Sanitize file permissions for downloaded files.
...
Downloaded files may not have read permission for everybody.
This doesn't seem to be a problem since the user as well as
root should be able to read them anyhow. This is true unless
the directory where the cache resides is mounted over nfs
with root_squash.
Signed-off-by: Egbert Eich <eich@suse.de>
2011-08-16 11:33:56 +02:00
Cristian Rodríguez
931d216ea0
Set the SSL client cipher list to only use very strong algorithms.
2011-08-16 11:33:56 +02:00
Michal Marek
c7e5819b7c
Do not check for untracked files before commit
...
This duplicates the work of the source validator and is just annoying.
Suggested-by: Michal Vyskocil <mvyskocil@suse.cz>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2011-08-16 11:33:56 +02:00
Marcus Huewe
3be3b915bd
- fixed request_interactive_review
2011-08-15 17:06:04 +02:00
Marcus Huewe
2307cfc0b7
- coding style...
2011-08-11 23:11:15 +02:00
Marcus Huewe
7927b83c1c
- request_interactive_review: use request_diff
...
(old diff method is kept for backward compatibility)
2011-08-11 23:09:45 +02:00
Ludwig Nussel
f707e9a22e
fix pgp pubkey parsing
...
the base64 checksum must not be included in the key data. Newer rpm
don't like that.
2011-08-05 13:53:33 +02:00
Sascha Peilicke
e3f0821bd4
Fix commit 438569f821
2011-07-29 11:05:06 +02:00
Dirk Mueller
54c520da8e
fix link to pattern description
2011-07-27 15:22:40 +02:00
Sascha Peilicke
f072cfed15
Make sure that the description is really empty for new projects/packages
2011-07-20 19:34:46 +02:00
0ba9383e17
- checkout of entire project is skipping packages which links to project local packages by default.
2011-07-20 17:27:05 +02:00
1630792e21
- fix DISTURL help
2011-07-20 17:17:56 +02:00
82d9f9e695
It is not that easy, it would also need support server side and it must not depend on projects, since a branch must still produce the same result
...
Revert "Forward project directory to source services."
This reverts commit 9c016b8bf0
.
2011-07-20 12:03:44 +02:00
37f88a23b1
- log less on source service error in the hope that the service did proper logging already
2011-07-20 12:00:57 +02:00
Johannes Obermayr
9c016b8bf0
Forward project directory to source services.
...
This helps to implement an efficient way to create source tarballs from Git repositories:
1. The cloned Git repository will be stored only once in a directory; all projects will use this repository (determined by the URL).
2. The bzip2 compressed tarball will be created via 'git archive $branch $filestoinclude --prefix=$name | bzip2 --best >$projdir/$name-$version'.
3. The version will be adapted automatically without the set_version service.
4. All branched/linked projects will be updated automatically (does not with current implementation).
5. Not to mention it saves space on source host(s).
2011-07-20 11:40:04 +02:00
dce5c8b4fc
- show created incident project
2011-07-19 18:05:32 +02:00
Marcus Huewe
af253d2eb2
- respect no_proxy env variable
2011-07-15 20:10:45 +02:00
182284ef49
Merge branch 'master' of gitorious.org:opensuse/osc
2011-07-13 15:47:57 +02:00
ee977eb8fc
- show also comment in request list
2011-07-13 15:47:38 +02:00
Sascha Peilicke
438569f821
PEP8-ified parts of the code.
...
Exchange individual return statements with a finally statement in the
big try/except statement in babysitter.py. If you return a different
value in the 'except' clause, it takes precedency over the 'finally'
clause (finally is executed before returning, naturally).
2011-07-08 16:09:44 +02:00
Sascha Peilicke
6676d530bc
Give some status output if request list was empty.
...
Either there where no requests or the project didn't exist.
Fixes bnc#543999
2011-07-08 15:11:17 +02:00
Sascha Peilicke
93f87c9838
Honor '-p' and '-P' parameters in request list command.
...
Fixes bnc#703586
2011-07-07 10:12:57 +02:00
4ea084761e
- do not print "Waiting" line on packages without defined services
2011-07-04 12:13:20 +02:00
caec4c2547
- detect also project wide only source services during commit
2011-07-04 12:05:47 +02:00
e6f631ebe8
- crash fix on maintenance incident creation with given project
2011-06-27 14:37:08 +02:00
Sascha Peilicke
0de8953952
Revert "Align --no-service commit command parameter to build command param"
...
This reverts commit d22b2a6523
.
We have not yet decided on how to best align the names of
service-related optional arguments.
2011-06-17 11:02:57 +02:00
Sascha Peilicke
d22b2a6523
Align --no-service commit command parameter to build command param
...
style.
2011-06-16 12:06:03 +02:00
881641d479
- do not run source services on local packages or offline builds, but warn about that
2011-06-15 14:17:33 +02:00
6344bcc616
- fix crash after commit when no serviceinfo element exists
2011-06-10 11:37:24 +02:00
eb6a42713d
- fix broken update after commit with service run
...
- fix up -S on unexpanded checkouts
2011-06-09 17:22:49 +02:00
Petr Uzel
95febe963b
osc co: print help instead of crashing if no arguments are given
...
This fixes:
~> osc checkout
Traceback (most recent call last):
File "/usr/bin/osc", line 21, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 52, in run
return prg.main()
File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 310, in main
return self.cmd(args)
File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 333, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 449, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1179, in _dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3386, in do_checkout
m = re.match(r"obs://([^/]+)/(\S+)/([^/]+)/([A-Fa-f\d]+)\-(\S+)", args[0])
IndexError: tuple index out of range
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-06-08 14:59:12 +02:00
Marcus Huewe
b04550afc6
- getProjectGlobalServices: catch 400 instead of 404
...
otherwise it breaks older obs instances
2011-06-08 13:22:51 +02:00
Michal Čihař
c14f81c1f2
Fix spelling
2011-06-08 12:10:47 +02:00
a6716337f5
- add the --meta handling also to list, cat and less commands
2011-06-08 10:25:15 +02:00
8bc3f3a6d2
- open 0.133 developement
2011-06-07 16:46:26 +02:00
425fdec665
release 0.132
2011-06-07 16:39:46 +02:00
9d6da6700e
- fix error message
2011-06-06 14:43:01 +02:00
946ac03dae
- add 'requestbugownership' command for setting the bugowner via request
2011-06-01 09:50:30 +02:00
Ludwig Nussel
75e196875b
fix lines = None
2011-06-01 09:12:28 +02:00
Ludwig Nussel
14d9877838
avoid first line empty for commit message
2011-05-31 11:48:26 +02:00
Ludwig Nussel
651d66afab
add .changes diff to commit message again
2011-05-31 11:48:26 +02:00
Vincent Untz
3dca0702c5
osc pdiff ("parent diff")
2011-05-30 13:19:19 +02:00
21bb30325e
- do not search for requests, if one got specified via -s parameter
2011-05-26 17:13:06 +02:00
48fc059e0b
- fix changelog comments take over to commit log
2011-05-26 16:39:40 +02:00
d735377ad7
- do not fail on special packages with defined source services
2011-05-26 16:39:40 +02:00
Michal Čihař
e0b7f69fe6
Handle also errors which can sneak out of httplib
2011-05-26 11:54:14 +02:00
8dd0d9f8e3
- rdelte and undelete operate with history comment now
2011-05-26 10:21:14 +02:00
593acbb843
- run source services always verbose on "osc build"
2011-05-25 13:45:54 +02:00
48a8fa144f
- support for local defined source services during commit. Move old validation and trylocal source service run into commit function
2011-05-25 13:34:32 +02:00
c00751f4d7
- handle errors of source service runs
2011-05-24 10:49:08 +02:00
0a7492cdf8
- fix description of rdelete commands and make a difference to enforce it on server side or to ignore the content. Famous rm -rf command exists now :)
2011-05-23 20:43:35 +02:00
Michael Schroeder
19a9765065
- fix auth failure when converting from passx to pass
2011-05-23 17:14:48 +02:00
4caf868548
- requests in history can be also delete or maintenance requests
2011-05-23 17:01:28 +02:00
6c654b012f
- just for readability
2011-05-23 16:34:04 +02:00
22e4047005
- support the new source service file mode of OBS 2.3 Beta 2
2011-05-23 15:26:13 +02:00
3408f57078
- use merged srcmd5sum as default revision on submit request creation, if link target is not submit target.
...
This allows to create multiple submit requests from same source, if one of them is to the link target.
Otherwise merge conflicts will occur
2011-05-19 17:11:37 +02:00
Marcus Huewe
24cf2a607b
- server_diff_noex: fixed logic error (body is no Element)
2011-05-18 17:54:33 +02:00
Marcus Huewe
3007c252a2
Revert "read_filemeta: create the default _files if not exists"
...
This reverts commit a05a2a0a4f
.
Conflicts:
osc/core.py
The commit doesn't make much sense because we can't recover from a missing .osc/_files file.
This has to be fixed.
2011-05-17 16:09:09 +02:00
Marcus Huewe
7c427aa505
- fixed os.path.join call
2011-05-16 14:27:55 +02:00
Marcus Huewe
7c59949f33
- add new config option include_request_from_project (default True)
...
This way it's possible to hide requests which have a given project
as a source project when running "osc rq list project".
Original patch by darix (just a bit beautified)
2011-05-12 23:27:19 +02:00
704199f279
- support to create hidden project on "branch" and "createincident" commands
2011-05-04 12:11:24 +02:00
e120cd6b39
- update local copy after checkin if source service is there
2011-05-03 16:44:20 +02:00
3e4424d222
- block creating submit requests when a source service is still running (OBS 2.3 only)
2011-05-02 15:28:44 +02:00
acbbbacabd
- add "createincident" command
2011-05-02 13:22:56 +02:00
Marcus Huewe
5e74d75acf
- fixed print statement calls
2011-04-29 20:29:07 +02:00
Marcus Huewe
2460d8a8f8
- fix for commit b0ddeb909d
2011-04-28 23:55:22 +02:00
Michal Čihař
4f4e90bafc
Fix various typos
2011-04-28 11:14:38 +02:00
ab48f97add
- open 0.132 version
2011-04-27 14:39:17 +02:00
85ab5e9804
switch to 0.131 release
2011-04-27 14:38:30 +02:00
a6ecdbaa1d
- "review accept/decline" is trying to change all reviews of a requests, if a specific one is not specified by user.
...
- do not always implicit add by_user on reviews.
- remove default to set a user himself as reviewer (makes no sense)
2011-04-26 17:21:40 +02:00
Marcus Huewe
023a2426d9
- osc rq show <id> -d: store tmpfile with suffix ".diff" (for syntax highlighting)
...
- run_pager: added optional "tmp_suffix" parameter
2011-04-24 00:27:47 +02:00
Ludwig Nussel
f7a781e730
fix PackageNotInstalled printing
2011-04-21 14:31:30 +02:00
4d11387b14
- "my requests" is showing requests with open reviews also now
2011-04-20 16:54:10 +02:00
Ludwig Nussel
e8505d829b
allow TLS only
2011-04-20 14:12:59 +02:00
Ludwig Nussel
244e9b0baf
make abortbuild parameters work like rebuild
2011-04-20 14:12:59 +02:00
Ludwig Nussel
eee8c96d0c
use ssl session resumption
...
saves some cycles if osc makes several requests
2011-04-18 11:03:42 +02:00
Ludwig Nussel
1c9d99fa79
catch only urllib errors for expand handling
2011-04-18 11:03:42 +02:00
Ludwig Nussel
b33577b6a7
use more generic oscerr.PackageNotInstalled
2011-04-18 11:03:28 +02:00
Martin Mohring
b0ddeb909d
[osc] allow expansion of %(apihost)s also as part of setting
...
packagecachedir in .oscrc so we can have caches per apihost
2011-04-14 21:54:00 +02:00
Test User
bba8272595
Merge branch 'master' of gitorious.org:opensuse/osc
2011-04-12 00:25:21 +02:00
Juergen Weigert
21d96a4a17
added new command: osc who [login]
2011-04-11 20:48:59 +02:00
Juergen Weigert
022578925b
osc ls . (shortcut for PROJECT PACKAGE from current dir.)
2011-04-11 15:07:56 +02:00
Test User
9c2593b515
ci warning 'File "..." is listed in package meta but does not exist.'
...
was confusing, it is the wrong way around. fixed.
Also allowing 'd' as an alias to 'r', in case the user thinks of
'delete', rather than 'remove'. This is also consistent with Rudi's validator
scripts.
2011-04-08 14:25:56 +02:00
Marcus Huewe
b8c3a23b90
- conf.py: workaround for urllib2: reset basic auth retry count if a 404 is encountered
...
normally we should also do this for all status codes != 401 but so far
it seems to be sufficient to do it only for 404
2011-04-06 17:26:51 +02:00
Juergen Weigert
b7328b6adf
get_api_url() diagnostics now includes ESTALE.
2011-04-06 15:31:36 +02:00
David Greaves
acbf21f7db
ci now accepts "-F -" as stdin
2011-03-30 22:33:30 +01:00
802925c216
- fix failure of aggregatepac when target package exists only via project link
2011-03-30 14:12:59 +02:00
Marcus Huewe
be4f1f350e
- renamed "PackageNotInstalled" exception to "ServiceNotInstalled"
...
- also catch this exception in babysitter.py
2011-03-30 01:10:48 +02:00
Sascha Peilicke
8ab7ab3caa
Inherit package roles from parent project.
2011-03-29 12:16:56 +02:00
Juergen Weigert
7203a8f9ab
fixed url of the plugin
2011-03-24 15:20:51 +01:00
Juergen Weigert
8e9cf75d7b
do_install now points to home:jnweiger osc-plugin-install
2011-03-24 13:56:37 +01:00
Marcus Huewe
94c006ba5f
- fixed set_link_rev: if expand is True always get the (expanded) revision from the server
2011-03-23 15:36:22 +01:00
38f665eef8
- handle missing or wrong service commands with a valid error
2011-03-22 10:21:48 +01:00
Juergen Weigert
feb731e3c0
Added 'env OSC_PLUGIN_FAIL_IGNORE=1 osc ...'
...
Otherwise a failing plugin prevents us from seeing even a usage.
2011-03-21 18:53:05 +01:00
Marcus Huewe
02726a6a07
- set_link_rev: minor cleanup; baserev always implies expand=True
...
also renamed "xsrcmd5" keyword argument to "expand"
2011-03-21 16:57:22 +01:00
5f5ae8e22d
- fix crash on project only service files
2011-03-21 09:48:05 +01:00
13633ab0e7
- do not list "localrun" anymore, it can't work in all circumstances
2011-03-21 09:48:05 +01:00
Marcus Huewe
400e417a5f
- build.py: remove debug output
2011-03-19 10:47:00 +01:00
Juergen Weigert
25d6c66aa9
Better advertise getpac_default_project in the online help of 'osc branch'
2011-03-17 18:48:20 +01:00
ab0e5d43ce
- fix setlinkrev for current revision when link target is on remote OBS instance
2011-03-17 18:19:47 +01:00
4f8bedf998
- do not try to merge generated _service: files on pull
2011-03-17 15:35:22 +01:00
c859fc5430
- allow to force the storage of project meta data (to ignore depending repositories for example)
2011-03-16 10:20:50 +01:00
7fe43cb486
- missing source serivce on local workstation is not an API error
2011-03-16 10:20:50 +01:00
Marcus Huewe
35bf60bbf0
- support %(apihost)s in the "build-root" config option
...
apihost is the hostname extracted from currently used apiurl
2011-03-15 18:45:36 +01:00
Marcus Huewe
09c46bd7c3
- fixed delPackage (TODO: testcases for this method)
2011-03-11 14:44:44 +01:00
adbd54045c
- follow renamed attribute to OBS:MaintenanceProject
2011-03-11 11:07:35 +01:00
4c970f867b
- unbreak maintenance request creation
2011-03-11 11:07:15 +01:00
Juergen Weigert
b46d287570
added hint, what to do with a 'user is blank' error.
2011-03-10 20:14:09 +01:00
Marcus Huewe
c3d5516bf8
- find_default_project: fixed indention, only "catch" urllib2.HTTPError
2011-03-09 22:47:02 +01:00
Juergen Weigert
64f9dca08b
Allow conf.config['getpac_default_project'] to be a list.
...
Added find_default_project() to process this list.
2011-03-09 16:10:48 +01:00
Marcus Huewe
9396d9c34d
- do_develproject: small cleanup + fixes
2011-03-08 19:47:54 +01:00
Marcus Huewe
4bc6c34ae3
- show_develproject: added additional "xml_node=False" parameter (if true an Element instance is returned (if devel exists))
2011-03-08 19:44:29 +01:00
Juergen Weigert
cb534d09b6
- new command 'develproject' to print the devel project from the package meta.
2011-03-08 19:23:04 +01:00
Juergen Weigert
b5f234f59d
Merge branch 'master' of gitorious.org:opensuse/osc
2011-03-08 18:50:32 +01:00
Juergen Weigert
4a3a071c41
fixed osc co proj pack file, which took great effort in following a link
...
without applying a project.diff -- now it merges correctly.
2011-03-08 18:48:00 +01:00
281f6dd0ca
- add also simple maintenance release request command
2011-03-07 19:45:44 +01:00
Juergen Weigert
44e4eb9334
Reverting Sascha's unicode attempt. This made 'osc submit' always fail with
...
uncaught exception: Fatal error: Start tag expected, '<' not found at :1.
2011-03-07 18:16:10 +01:00
Marcus Huewe
45a7a84967
- do_maintenancerequest: cleanup
2011-03-07 13:08:44 +01:00
Marcus Huewe
65f817bfa8
- create_maintenance_request: use Request class to build the request
2011-03-07 13:03:34 +01:00
87b060e9a3
- add "maintenancerequests" command to request a maintenance incident from maintenance team
2011-03-07 11:46:51 +01:00
402ce3a626
- stay backward compatible with pathinfo command. This default will switch, when we switch to new
...
maintenance modell on api.opensuse.org
2011-03-07 09:51:16 +01:00
1db5eea95c
- do not show requests by default, where I am not responsible right now (waiting for review of other people)
2011-03-07 09:22:13 +01:00
Juergen Weigert
e8aa7df530
osc rdelete now warns, if requests are pending.
2011-03-05 20:08:47 +01:00
b2adcb7d94
- do not crash on maintenance release or incident requests
2011-03-04 15:50:06 +01:00
Sascha Peilicke
3bb9332376
[webui] Fix Jürgen's Unicode issue and stupid default value assignment.
2011-03-04 09:04:18 +01:00
Sascha Peilicke
95bc493b19
Revert "Catch non-utf8 and convert it to utf8 inside create_submit_request() to prevent"
...
This reverts commit 518229067c
.
Doesn't solve your issue:
>>> unicode("!§").encode("utf8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)
Fix pending...
2011-03-04 08:59:05 +01:00
Juergen Weigert
518229067c
Catch non-utf8 and convert it to utf8 inside create_submit_request() to prevent
...
osc submit -m 'latin-1 chars' from exploding.
Not sure why 'osc commit' or 'osc vc' work with latin-1 chars in their messages.
2011-03-03 18:27:12 +01:00
Juergen Weigert
b618d16f62
Giving hint at 'osc my sr', if 'osc my rq' returns nothing.
...
These two are easy to confuse.
2011-03-03 16:31:33 +01:00
Ludwig Nussel
60d054317c
meta data diff
2011-03-03 10:07:58 +01:00
Marcus Huewe
70e224a007
- print_repos: added exc_class and exc_msg parameters to specify the exception class + exception msg
...
- do_getbinaries: print correct error message
2011-03-02 14:38:24 +01:00
Marcus Huewe
ba1fe8ab80
- do_getbinaries: fail if repo doesn't exist
2011-03-02 14:26:24 +01:00
e721bb5ab6
- service disabledrun must store files without prefix to be able to submit them
2011-02-28 10:05:06 +01:00
468106e19d
double the default for "buildlogtail", kiwi failures are usually not in the last line unfortunatly
2011-02-27 14:21:38 +01:00
Marcus Huewe
0a67840310
- get_user_projpkgs_request_list: fixed logic error
2011-02-24 14:11:37 +01:00
Marcus Huewe
0ee18d1d7e
- fixed #671790 ("osc my rq returns 400")
2011-02-24 14:11:37 +01:00
87d95409ec
- avoid unwanted entire project rebuilds
2011-02-22 22:44:46 +01:00
Juergen Weigert
83cadd7157
'osc rq list' now defaults to 'new,review' instead of only 'new'.
...
Usage now mentions 'review' too.
2011-02-22 19:13:59 +01:00
Marcus Huewe
f06b39fb40
- use get/set when working with an "Element" instance (instead of using the "attrib" dict)
2011-02-22 17:53:58 +01:00
Marcus Huewe
3f54237a7c
- rewrote set_link_rev
2011-02-22 17:53:58 +01:00
Ludwig Nussel
208230bc58
fix --no-init
2011-02-22 11:17:26 +01:00
Marcus Huewe
b489f95746
- update: fixed os.path.join call
2011-02-22 00:22:55 +01:00
70797b5593
Don't submit crud workarounds for problems which should be fixed on the other side.
...
Revert "avoid 404 in osc se -V caused by looking up the _history of nonexistant"
This reverts commit d7a1428d69
.
2011-02-21 13:41:02 +01:00
Juergen Weigert
d7a1428d69
avoid 404 in osc se -V caused by looking up the _history of nonexistant
...
packages. Workaround for BNC#673654
2011-02-21 00:26:54 +01:00
Marcus Huewe
02f788f12e
- (temporary) fix for 53ca3b9a14
...
(python 2.4 doesn't support the syntax)
2011-02-18 00:34:49 +01:00
Anas Nashif
53ca3b9a14
default to 1 processors on darwin, since we are not going to build anything here anyways.
2011-02-17 22:50:13 +00:00
Marcus Huewe
a8fff94077
- minor cleanup
2011-02-17 14:22:16 +01:00
Marcus Huewe
da0e4bae30
- fixed do_service
2011-02-17 01:57:53 +01:00
Marcus Huewe
e493771454
- do_results: fixed --xml output
2011-02-17 01:31:04 +01:00
5d84695beb
- use new api call to collect all project wide source services
2011-02-15 18:39:06 +01:00
f0690d4e2f
- make it possible to run single source services, even when not specified in _service file.
...
(For example for doing a version update without creating a _service file: osc service lr update_source)
2011-02-15 09:41:03 +01:00
70e3cbbd33
- do not crash in setlinkrev, if link target is no link.
2011-02-14 15:57:42 +01:00
380f41b9a4
- avoid to create a _pull file when having a working copy (or the user runs in a dead end,
...
since we don't support pull on pulled sources, what is actually another bug)
2011-02-14 12:26:51 +01:00
a86c7b9311
- don't crash when src server decides to expand in any case (when one package
...
is a link and the other not).
2011-02-14 11:31:33 +01:00
Marcus Huewe
fa5e07f792
- do_detachbranch: added --message option; added some more error handling
2011-02-11 17:38:59 +01:00
Marcus Huewe
b318ec1698
- added new "detachbranch" command to replace a link/branch with its expanded sources
2011-02-11 17:12:35 +01:00
Marcus Huewe
8e11055418
- copy_pac: only edit meta if "source" and "target" differ
2011-02-11 17:12:35 +01:00
0bf76163ed
- add request and review "supersede" command, to supersede by an existsing request
2011-02-11 16:12:38 +01:00
Juergen Weigert
36007fb538
fixed se -V to not explode when a project match was found.
2011-02-11 15:11:50 +01:00
Marcus Huewe
1dcf5fb3d6
- use pass instead of passx (plaintext_passwd is the default)
2011-02-11 12:42:54 +01:00
Marcus Huewe
5cb8468f3b
- don't fail if terminal encoding doesn't support unicode ( fixes #660445 )
...
- added util.safewriter.SafeWriter class
2011-02-11 02:45:13 +01:00
Marcus Huewe
8fc0a4e94b
- fix for 7d5893992d
2011-02-09 15:53:36 +01:00
Marcus Huewe
7d5893992d
- use Request's __cmd__ method for sorting
2011-02-09 15:51:26 +01:00
Ludwig Nussel
69458ca8c4
sort request lists by id
2011-02-09 14:57:33 +01:00
Marcus Huewe
09cee2a9f0
- fixed misleading note ( #644550 ("osc don't branch particular project"))
2011-02-08 17:09:48 +01:00
55f580f988
add force option to accept requests in review state.
2011-02-08 16:16:18 +01:00
Ludwig Nussel
75b662534f
fix osc my with obs 2.2 api
2011-02-04 10:35:02 +01:00
Ludwig Nussel
ba3bed8ecc
only catch http error, other exceptions are bugs
2011-02-04 10:35:02 +01:00
Ludwig Nussel
99ce83352c
fix indent
2011-02-04 10:35:02 +01:00
Ludwig Nussel
8c275ea991
osc my: also show requests in review state
2011-02-04 09:44:59 +01:00
Ludwig Nussel
0527789db9
either use plain text password or obfuscated ones
...
Don't you ever call this encrypted. It's just about obfuscation and
has no real security benefit.
2011-02-03 14:25:20 +01:00
Ludwig Nussel
dd8b3ee681
Don't request message when branching a package
2011-02-03 14:25:20 +01:00
Marcus Huewe
f18b4d6a36
- fix for 0fd0ff2685
2011-02-02 19:35:32 +01:00
Juergen Weigert
0fd0ff2685
Help text of co -s was indentical to co -S, fixed to say local instead of server.
...
Fixed -s to chdir into the project for the sake of /usr/lib/obs/service/verify_file
2011-02-02 17:11:14 +01:00
Marcus Huewe
d174599b8d
- escape % in help text
2011-02-01 20:07:29 +01:00
Marcus Huewe
1a89821f36
- fixed indention+small cleanup
...
- added "XXX" comment due the openSUSE specific "osc co obs://" implementation
2011-02-01 18:37:17 +01:00
Marcus Huewe
bb02a34622
- globally catch OSError ENOENT
2011-02-01 18:25:23 +01:00
Juergen Weigert
40af804c17
No such file or directory should not trigger stack trace.
2011-02-01 15:55:43 +01:00
Juergen Weigert
9228cebdc5
osc checkout '%{disturl}' is now supported.
2011-01-31 17:49:04 +01:00
Marcus Huewe
818eb05126
- use xmlindent instead of minidom stuff
2011-01-30 21:56:21 +01:00
Marcus Huewe
f9b1bd5c18
- do_search: '::' isn't a perl specific namespace/package/module separator
2011-01-30 21:37:45 +01:00
Marcus Huewe
61dd1613a6
Revert "[osc] add cb(pre)ignore capabilities to osc."
...
This reverts commit 68c7b57f66
.
It isn't needed because the corresponding backend part was also reverted
2011-01-30 21:31:58 +01:00
Marcus Huewe
88376a2bed
- Request: format_review, format_action should be static methods
...
- adjusted method docstring
- server_diff_noex: removed print statement
2011-01-30 21:26:04 +01:00
Jan-Simon Möller
e2f440fe95
Add armv7hl (hardfloat ABI) support.
...
Tested-by: Martin Mohring <martin.mohring@5edatasoft.com>
Reviewed-by: Martin Mohring <martin.mohring@5edatasoft.com>
2011-01-30 18:28:00 +01:00
Marcus Huewe
d4b4182220
- parse_repoarchdescr: use similar build descr "guessing" mechanism like bs_srcserver (but it still differs)
2011-01-30 16:38:11 +01:00
Marcus Huewe
880e7d5cb2
- do_request: added "--edit" option to edit a submit action ("osc rq show <id> --edit")
2011-01-30 14:24:21 +01:00
Marcus Huewe
ef06aa26cf
- fixed #665784 ("osc build --offline doesn't work for key verification")
2011-01-30 00:01:48 +01:00
Marcus Huewe
876b31d60a
- request_interactive_review: added support to "edit" a submit action (as requested by darix)
...
how it works:
- "clone" request
- checkout a specific submit action (modify package; commit changes)
- create a new request (<"clone" project>/package -> <target project>/package)
- accept newly created request; optionally supersede original request
2011-01-29 23:30:54 +01:00
Marcus Huewe
dd1237218c
- clone_request: return the "targetproject"
2011-01-29 23:14:19 +01:00
Marcus Huewe
919c347c7f
- handle requests with multiple (submit) actions
2011-01-29 18:47:26 +01:00
Marcus Huewe
d5173cfc01
- use get_actions method
2011-01-29 17:47:28 +01:00
Marcus Huewe
8406cdd56d
- Request: added get_actions method
2011-01-29 17:44:03 +01:00
Marcus Huewe
68d559e343
- refactored request diff code
2011-01-29 17:24:45 +01:00
Marcus Huewe
89ceb20abb
- fix for db9e7c7974
2011-01-28 15:52:10 +01:00
Marcus Huewe
44fbdc69f2
- minor change
2011-01-26 18:07:42 +01:00
602abd7c1e
check if project wide _service file really exists
2011-01-26 17:42:17 +01:00
79656a45e1
fix "osc add some_git_url", using now official source service instead of unknown git_pull
2011-01-26 17:29:43 +01:00
e5333f0b23
support project wide source services
2011-01-26 17:22:03 +01:00
373727ba55
new source service commands "localrun" and "disabledrun" to generate files without _service: prefix
2011-01-26 16:30:57 +01:00
146a2d4f72
support for new source service modes: disabled, trylocal and localonly
2011-01-26 16:16:27 +01:00
Marcus Huewe
8a488d3b6d
- reworked do_requestmaintainership()
2011-01-25 21:06:28 +01:00
Marcus Huewe
db8818c30f
- do_changedevelrequest, do_deleterequest: use Request object to create the request
...
- removed: core.create_delete_request(), core.create_change_devel_request()
2011-01-25 20:41:42 +01:00
Ludwig Nussel
dda7d87374
remove forgotten print
2011-01-25 16:57:25 +01:00
Ludwig Nussel
93acbc3720
allow mkpac on existing directory
2011-01-25 16:53:31 +01:00
Ludwig Nussel
b1be0f84ea
refactor diff command
2011-01-25 16:53:31 +01:00
Ludwig Nussel
6be91ceda0
download debugsource with --debug rather than --source
2011-01-25 16:53:31 +01:00
Marcus Huewe
497f97fc85
- use EPIPE (as suggested by mls)
2011-01-24 12:05:36 +01:00
eb1c5e0f48
add better support for reviews of requests. User api side request search if available.
2011-01-24 08:29:47 +01:00
Marcus Huewe
09b323c2d3
- globally ignore broken pipe
2011-01-22 16:41:06 +01:00
Sascha Peilicke
1491dd4f4b
Don't crash on broken pipe (fixes bnc#661963).
2011-01-21 11:22:18 +01:00
Sascha Peilicke
b66ab73475
Don't mix tabs with spaces.
2011-01-21 11:13:18 +01:00
Sascha Peilicke
0a40037d27
Use './binaries' as default directory for getbinaries.
...
Previously, there was no directory set when fetching multiple arches and
distinct dirs for specific arches. Should be more consistent now.
2011-01-21 10:35:47 +01:00
Marcus Huewe
fe8febe56e
- fixed #646886 ('"osc build" when iChain is broken trashes local _buildinfo, _buildconfig')
2011-01-20 20:54:38 +01:00
Marcus Huewe
dd377b07a6
- fixed #663270 ("osc importsrcpkg --commit fails")
2011-01-20 20:39:20 +01:00
507567be71
support to view the commit history of deleted packages
2011-01-19 20:26:38 +01:00
Marcus Huewe
7fa621be16
- do_delete: inform about non existent skipped file
2011-01-18 19:38:33 +01:00
Marcus Huewe
967719e566
- class Request: added create method in order to create a new request
...
- removed "self.readonly" attribute for now (maybe we need this in the future...)
2011-01-18 19:34:25 +01:00
Marcus Huewe
955ee78e8b
- fix for my last commit
2011-01-17 19:33:02 +01:00
Marcus Huewe
78cf44a5bc
- do_search: if --involved, --bugowner etc. is used default to <username> if no search_term is specified
2011-01-17 19:28:50 +01:00
Marcus Huewe
83d1883c35
- delete_file: added special handling for skipped files
...
if a local file exists and is marked as skipped, simply delete this file
otherwise do nothing
2011-01-17 15:00:21 +01:00
Marcus Huewe
7b08d6c4a3
- Action: support for acceptinfo
2011-01-12 22:21:32 +01:00
8fed7847e4
fallback to unexpanded diff mode on "osc diff" on merge error. Same behaviour as rdiff is doing.
2011-01-12 17:09:41 +01:00
d11e9f8514
add "osc less", it is "osc cat" + pager
2011-01-12 17:04:22 +01:00
f729ea8e38
fix add_me request
2011-01-12 11:29:46 +01:00
c226327ae5
add option to request the additon of a group to a project or package and rename add_role to add_user to make the difference obvious.
2011-01-11 20:02:48 +01:00
Rohan McGovern
2d5b853aa0
Expand links when checking out a single file.
...
Prior to this change, `osc co PROJECT' and `osc co PROJECT PACKAGE'
would both follow links, but `osc co PROJECT PACKAGE FILE' would not.
To make matters even more confusing, `osc ls PROJECT PACKAGE FILE'
does follow links - so, for linked files, an `ls' would tell you a file
exists, then `co' would give a 404 error.
This change fixes the inconsistency.
2011-01-11 19:56:29 +01:00
06e285130b
add createrequest "add_me" shortcut
2011-01-10 13:12:09 +01:00
8bad2ed16b
fix crash on missing initialisation
2011-01-08 15:06:36 +01:00
db9e7c7974
- add blt and rblt commands, aka "buildlogtail" and "remotebuildlogtail" to show
...
just the end of a build log (for getting the fail reason faster).
CHANGE: the --start parameter is now called --offset
2011-01-07 23:05:44 +01:00
a828b0be2e
do not remove service files on commit, we only remove them on an update now
2011-01-07 21:30:41 +01:00
122679fb67
fix service execution when _service file got not yet commited (but already added)
2011-01-07 14:41:55 +01:00
Michal Čihař
f8184165ed
Drop plain text password from generated config file.
...
The passx is around for some time and it is not needed to put plaintext
into config file forever.
2011-01-07 09:48:34 +01:00
Michal Vyskocil
ef37e6b721
Drop pre_checking.sh ( 8ea5bc7
) due security problems
2011-01-07 09:17:50 +01:00
7988624403
fix file duplications, cleanup possible existing service generated files before create new ones
2011-01-06 15:03:18 +01:00
Marcus Huewe
186d4ae4f7
- fix for 3892117558
2011-01-05 17:00:19 +01:00
Michal Čihař
3892117558
Print warnings to stderr.
...
This way we can avoid confusion for programs which do parse osc output.
2011-01-05 16:32:41 +01:00
Michal Vyskocil
8ea5bc7f04
run pre_checkin.sh on build and commit
...
The pre_checkin.sh is script run after each checkin of package into
SUSE. Osc build and commit commands now runs it automatically too,
unless --no-precheckin is specified.
2011-01-05 16:12:25 +01:00
Michal Čihař
ae13273045
Fix listing of projects and packages with unicode name
...
This fails with UnicodeEncodeError on non unicode terminal, what makes
it impossible to list project on current OBS.
2011-01-05 10:11:55 +01:00
Michal Marek
562c92d0d7
build: Fix for su-wrapper = su -c
...
su-wrapper = su -c has been broken since commit 5376580
. Handle this
case so that people do not have to update their configs.
Signed-off-by: Michal Marek <mmarek@suse.cz>
2011-01-02 23:43:51 +01:00
Marcus Huewe
50ae7c7c24
- fix for my last commit...
2010-12-30 21:02:42 +01:00
Marcus Huewe
5bf59d2c60
- change_request_state_template: support tgt_project and tgt_package in template (for backward compatibility the dst_ prefix is still supported)
2010-12-30 20:58:00 +01:00
Marcus Huewe
875fd86a31
- reqid is a str (now)
2010-12-30 13:28:11 +01:00
Marcus Huewe
40d1c58e1d
- added TODO to commandline.py (rewrite and consolidate the current submitrequest/createrequest "mess")
2010-12-30 03:14:24 +01:00
Marcus Huewe
dc869920b3
- print a newline after a list_view() call
2010-12-30 03:10:27 +01:00
Marcus Huewe
6cd837fcb3
- fixed attribute names for Request() instances (changed "dst_" prefix to "tgt_")
2010-12-30 03:04:10 +01:00
Marcus Huewe
b2838dd88d
- rewrote Request class and friends
...
- rewrote Action class: instances only provide attributes for their specific type (for details see class doc).
Renamed "dst_project" attribute to "tgt_project" and "dst_package" attribute to "tgt_package" (only affects
types which have a <target /> element)
- added AbstractState class: Base class which represents state-like objects (<review />, <state />)
- rewrote ReviewState and RequestState classes
- rewrote Request class: apart from internal rewrites the format of the "__str__" and "list_view" methods
slightly changed
Now it should be much easier to create new requests without constructing the
request xml by hand.
Example:
r = Request()
r.add_action('submit', src_project='foo', src_package='bar', tgt_project='targetprj', tgt_package='targetpkg')
r.add_action('set_bugowner', tgt_project='foobar', person_name='buguser')
r.add_action('delete', tgt_project='prj', tgt_package='deleteme')
print r.to_str()
->
<request>
<action type="submit">
<source package="bar" project="foo" />
<target package="targetpkg" project="targetprj" />
</action>
<action type="set_bugowner">
<target project="foobar" />
<person name="buguser" />
</action>
<action type="delete">
<target package="deleteme" project="prj" />
</action>
</request>
2010-12-30 02:30:37 +01:00
Juergen Weigert
01fc46cbd3
New config option 'checkout_rooted'. Default off to retain current
...
behaviour. Enabled, it prevents checking out projects inside of other
projects or packages. That better matches my mental model of a tree.
2010-12-27 23:03:17 +01:00
Juergen Weigert
ce3ee5e614
Added -V, --version to do_search.
...
This shows all the hard to retrieve, but 'essential' details about a
package: version, revision, srcmd5
If there is a better way some day, than digging through _history,
please improve core.py:get_source_rev()
It is a new option, only because it is so slow; the version
number should rather be in default output.
2010-12-26 21:14:40 +01:00
Marcus Huewe
f30297d2d3
- moved get_commit_msg into core.py + fixed _commit_msg handling
2010-12-26 13:33:14 +01:00
Marcus Huewe
3ed4d30c55
- do_status: call print unless "lines" is empty
2010-12-25 20:57:26 +01:00
Juergen Weigert
f39460c8d8
Added 'osc linkdiff'
...
This shows all changes since branching, be they committed or not.
Implementation folded into do_diff() for reuse of code, although
this can behave quite differently.
2010-12-24 22:44:19 +01:00
Marcus Huewe
9a07995cc3
- fixed WorkingCopyInconsistent __init__ call
2010-12-23 02:17:19 +01:00
Marcus Huewe
d77f8919fe
- Project.init_project: return Project object
...
- adjusted testcases
2010-12-23 02:15:58 +01:00
Marcus Huewe
c330700f36
- refactored getStatus into the Project/Package class
...
- removed getStatus
- added the following new methods to the Project class:
* get_status: get the status of all packages in the project
* status: get the status of a single package
* get_pacobj: return a new Package object
- added the following new method to the Package class:
* get_status: get the status of all files in the package
- do_commit: fixed getStatus() call
- do_status: rewrite (uses new methods)
2010-12-22 23:17:11 +01:00
Marcus Huewe
f4d3648c8e
- fix for 904754987c
2010-12-22 17:30:30 +01:00
Petr Uzel
197c10f661
Return argument to do_man back
...
Revert a part of b3c5204
, the do_main has to have at least one
argument, unless following exception will appear
osc.cmdln.CmdlnError: incorrect argcount for do_man(): takes 1, must
take 2 for 'argv' signature or 3+ for 'opts' signature
Signed-off-by: Petr Uzel <puzel@suse.cz>
Signed-off-by: Michal Vyskocil <mvyskocil@suse.cz>
2010-12-22 13:29:52 +01:00
Ludwig Nussel
70b3c3c435
fix osc my rq
...
also display requests for packages where the user is maintainer of
the package but not the project (e.g. devel:openSUSE:Factory)
2010-12-22 08:46:54 +01:00
Ludwig Nussel
6cee3c99fa
fix --define
2010-12-22 08:29:08 +01:00
Marcus Huewe
904754987c
- "override" raw_input from __builtin__'s and interpret EOFError (ctrl-d) as user abort (raise oscerr.UserAbort)
2010-12-22 00:03:27 +01:00
Ludwig Nussel
046a2be24e
never pass an empty superseded_by as that violates the schema
2010-12-21 14:20:43 +01:00
Ludwig Nussel
fb77b7b9f8
fix correct order in aggregate template
2010-12-21 14:12:14 +01:00
Ludwig Nussel
a854423e86
copypac: don't copy service generated files
2010-12-21 14:12:14 +01:00
Ludwig Nussel
78efea07eb
retry rdiff on unexpanded sources if link expansion fails
2010-12-21 14:12:14 +01:00
Ludwig Nussel
5376580652
use list instead of string for command
...
now arguments with spaces should also work
2010-12-21 14:12:14 +01:00
Ludwig Nussel
820595bb20
osc build --shell
2010-12-21 14:12:14 +01:00
Ludwig Nussel
72842a43c3
use sudo as default su wrapper
2010-12-21 14:12:14 +01:00
Marcus Huewe
570d4f7f70
- do_config: added --dump and --dump-full options to dump the complete configuration
2010-12-18 17:16:43 +01:00
Marcus Huewe
ec971074b0
- OscConfigParser.__str__: added special handling for continuation lines
2010-12-18 15:12:07 +01:00
Marcus Huewe
b1db52c7b6
- minor cosmetic changes
2010-12-18 03:39:19 +01:00
Brandon Philips
51d2436023
conf: detect and handle blank usernames
...
Fix situation where osc has added a blank username to the keyring and
update the config parse script to do the right thing and not allow blank
usernames.
I was in a very confusing situation where my keyring ended up with two
entries:
- @api.suse.de
- philipsb@api.suse.de
And I was getting 401s because of it.
Signed-off-by: Brandon Philips <bphilips@suse.de>
2010-12-18 03:27:26 +01:00
Marcus Huewe
0f73fb86a4
- fixed #658664 ("osc: a package internal error occured")
...
- a file was marked as 'A' but didn't exist in the wc
2010-12-17 23:25:50 +01:00
Marcus Huewe
306507748c
- fixed proxy handling (broken by 53361a50f1
)
...
- this fixes #657958 ("openSUSE:Tools/osc: Bug")
- oscssl.myProxyHTTPSConnection: proxy auth works again
2010-12-17 18:14:11 +01:00
Marcus Huewe
0e7074f89c
- change_review_state: by_group param should be optional
2010-12-15 14:31:18 +01:00
Marcus Huewe
a30f718d96
- fix for python2.4
2010-12-15 12:23:43 +01:00
Juergen Weigert
45e6e5cf08
Added dropreq droprequest as aliases to deleterequest,
...
mention 'drop' in usage. We often say 'drop a package'.
2010-12-14 15:49:27 +01:00
Marcus Huewe
de25822a33
- wc_repair: check if passed apiurl is valid
...
- do_repairwc: get apiurls from conf.config.api_host_options dict
2010-12-09 20:36:06 +01:00
Sascha Peilicke
67cd6582b5
Wrong parameter fix patch by Markus Rückert.
2010-12-09 17:36:31 +01:00
9d167a7eab
offer also to supersed requests in review state (Bug #658479 )
2010-12-09 08:28:11 +01:00
5af3ac58de
offer also to supersed requests in review state (Bug #658479 )
2010-12-09 08:28:11 +01:00
Michal Čihař
fa19a2436e
One more case for dash escaping in man page.
2010-12-09 10:32:31 +01:00
Marcus Huewe
68bb33f141
- potential fix for #657838("osc 0.130: osc repairwc fails totally - working copy useless")
...
- do_repairwc: added '--force-apiurl' option:
ask once for an apiurl and force this apiurl for all inconsistent projects/packages
2010-12-07 20:35:12 +01:00
Marcus Huewe
15178b6e4f
- use 'print' instead of 'return' (otherwise the message will be written to stderr)
2010-12-06 21:44:38 +01:00
Marcus Huewe
30363a5db9
- open 0.131 development
2010-12-06 19:14:02 +01:00
Michal Čihař
a285c83794
Implement retries on http
...
There is a bug either in buildservice or in iChain which sometimes
truncates data and sends empty Content-Length header (see bnc#656281).
This patch makes osc retry request to workaround this problem.
The number of retries are configurable in config file as http_retries.
2010-12-06 16:05:10 +01:00
Marcus Huewe
ebe2f6390c
- bump version to 0.130
2010-12-06 15:36:13 +01:00
Marcus Huewe
619ebdae8d
- util/debquery.py: workaround for python2.4's tarfile module
2010-12-04 12:11:34 +01:00
Juergen Weigert
42f8c595f9
fixed URL in aggregatepac help text.
2010-12-03 12:39:18 +01:00
Juergen Weigert
200807fb37
suggesting 'osc ls /' for listing all projects.
2010-12-02 23:52:38 +01:00
Juergen Weigert
2fd0f1cb95
allow 'osc results PROJECT', as an alternative to 'osc prjresults PROJECT'.
...
Flagged 'ls' without arguments as deprecated. This should really list
relative to the working directory rather than all projects.
It's now consistent with running 'osc r' in PRJ/PKG working directory.
2010-12-02 23:36:40 +01:00
Michal Čihař
fbfb098a7d
Move urlparse import where it belongs.
2010-12-01 10:17:12 +01:00
Marcus Huewe
54a0d80abe
- don't fail if no "Content-Length" header exists
2010-11-30 19:10:06 +01:00
d3188831b9
validate received file length based on given Content-Length. for Bug #656281
2010-11-30 16:39:14 +01:00
Marcus Huewe
94836bcbf7
- do_submitrequest: --cleanup and --no-cleanup are mutually exclusive
2010-11-26 14:53:30 +01:00
Marcus Huewe
f77ab86010
- beautify
2010-11-26 14:51:07 +01:00
Juergen Weigert
955522f8e1
let 'osc submitpac' default to do cleanup.
...
In my understanding a submit is often considered a move and not a copy.
2010-11-26 12:39:09 +01:00
Marcus Huewe
044ffdd62e
- minor cosmetic change for the last commit
2010-11-25 22:45:51 +01:00
Dirk Müller
596570cebb
optimize _link files
...
On Thursday 04 November 2010, Sascha Peilicke wrote:
> Could you please send a patch file?
attached.
Greetings,
Dirk
From ac737b9ff8205fe3c320ee0b41b093c7ad92c348 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dmueller@suse.de>
Date: Thu, 4 Nov 2010 11:01:08 +0100
Subject: [PATCH] linkpac: Only include src_project if it differs
osc copypac copies _link files verbatim, so if they refer
to the same project, copying them should make them also
refer to the new project. This can be done by leaving
out the project part if it is the same like the destination
project
2010-11-25 22:43:42 +01:00
Marcus Huewe
668a38e978
Revert "rename requestmaintainership to requestrole (much nicer and makes more sense)"
...
This reverts commit cc9d3e07eb
.
(see discussion on the ml)
2010-11-25 22:23:12 +01:00
Pavol Rusnak
cc9d3e07eb
rename requestmaintainership to requestrole (much nicer and makes more sense)
2010-11-24 18:20:49 +01:00
Marcus Huewe
6d89fee500
- do_requestmaintainership: added --role option to allow different roles ('bugowner' or 'maintainer') (slightly modified version of Anas Nashif's <nashif@linux.intel.com> patch)
2010-11-24 16:41:02 +01:00
115de1e5c1
fix "osc update -s" help text
2010-11-24 15:35:16 +01:00
Ludwig Nussel
3631df59d4
make rdelete more fool proof
...
The previous convention of allowing multiple packages has caused
accidental deletion of packages while deleting files was intended (which
doesn't work that way). e.g. osc rdelete foo/bar/baz.spec would delete
foo/bar and then fail trying to delete foo/baz.spec
Also calling osc rdelete with accidental slash, e.g. osc rdelete
/foo/bar actually deleted project foo including all it's packages
without asking questions.
Both traps are eliminated now.
2010-11-24 14:24:59 +01:00
0bb0fb80f1
fix reopen or a review of a request
2010-11-24 14:18:45 +01:00
Brandon Philips
0a65b9870e
commandline: improve ENOTDIR error message for validators
...
WARNING: source_validator_directory configured but it does not exist:
/usr/lib/osc/source_validators
Install osc-source_validator to fix.
Signed-off-by: Brandon Philips <bphilips@suse.de>
2010-11-19 08:24:20 +01:00
Marcus Huewe
53361a50f1
- oscssl.myHTTPSHandler.https_open: use selector instead of fullurl
...
- fixes an issue with lighttpd 1.5
2010-11-16 21:29:33 +01:00
Marcus Huewe
4a8a495849
- OscConfigParser: don't interpolate continuation lines
2010-11-14 18:53:14 +01:00
Marcus Huewe
ca794fe87f
- added template support for a submitrequest accept/decline message
2010-11-14 18:32:02 +01:00
Marcus Huewe
7ade282e6e
- rewrite pass to passx if pass and passx mismatch
...
- do_config: automatically reread (which may lead to a rewrite) config
if an option was changed
2010-11-14 13:10:17 +01:00
Juergen Weigert
805d9f9bf7
osc se Foo::Bar shortcut for osc se --package perl-Foo-Bar
2010-11-12 23:55:11 +01:00
Sascha Peilicke
dc49a7ebb2
fix for bnc #432995
2010-11-10 12:18:17 +01:00
8321e41096
fix review state change for review by_group
2010-11-09 17:19:56 +01:00
90325e90f4
fix URL syntax when requesting request list via reviewers
2010-11-09 16:08:26 +01:00
Ludwig Nussel
1b4955dc2a
add --arch and --repo to rebuild for Richi
2010-11-08 16:21:04 +01:00
Michael Schroeder
1299063228
- adapt 'osc pull' to new addlist implementation
2010-10-29 17:41:39 +02:00
Michael Schroeder
6b618b29be
- do not crash if there is no diff
2010-10-29 17:30:56 +02:00
Marcus Huewe
65e5af303a
- request_interactive_review: support "c(l)one"
2010-10-26 15:47:07 +02:00
Marcus Huewe
785e4dcb1f
- added new "clone_request" method
2010-10-26 15:34:32 +02:00
Juergen Weigert
7862ce74de
redundant 'state is' removed from messages.
2010-10-23 14:49:28 +02:00
Marcus Huewe
8d0778aff3
- babysitter.py: catch util.packagequery.PackageError
2010-10-21 21:51:20 +02:00
Marcus Huewe
1f51445859
- add "fname" attribute to util.PackageError class
2010-10-21 21:46:41 +02:00
Marcus Huewe
a651156b71
- don't print set value if --no-echo is used
2010-10-16 12:32:21 +02:00
Marcus Huewe
6d9b057898
- do_config: added new options --stdin, --prompt, --no-echo
...
--stdin: read value from stdin
--prompt: prompt for a value
--no-echo: prompt for a value but don't echo entered characters (for instance to enter a passwd)
2010-10-16 12:24:21 +02:00
Ludwig Nussel
5cdc422774
update review/request docu and fix some status code parsing
2010-10-12 11:31:03 +02:00
Ludwig Nussel
42866b1e12
prompt for message on review add
2010-10-12 11:31:02 +02:00
Ludwig Nussel
9e0b8c3760
remove 'review new', it's broken and intention unclear
2010-10-12 11:31:02 +02:00
Ludwig Nussel
0d93af2291
default to current user when adding a review
2010-10-12 11:31:02 +02:00
Ludwig Nussel
1b8c4a3382
add alias for old option
2010-10-12 11:31:02 +02:00
Marcus Huewe
4229eb6197
- repairwc: repair a project wc (only missing '_apiurl' file so far)
2010-10-10 21:40:31 +02:00