1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00
Commit Graph

1932 Commits

Author SHA1 Message Date
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, '&lt;' 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