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

2030 Commits

Author SHA1 Message Date
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
f8eae74898 - added new testcases in order to test the status methods for projects and packages 2010-12-22 23:12:24 +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
062bb35c95 - removed unused imports 2010-12-19 20:32:06 +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
70e43a87c2 - added testcases for #658664 ("osc: a package internal error occured")
- a file was marked as 'A' but the file didn't exist in the wc:
  - if it's part of the commit abort
  - otherwise ignore it
2010-12-17 23:23:39 +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
Marcus Huewe
71bedd4bb1 - new testcases for repair_wc: check if the passed parameter is a valid apiurl 2010-12-09 20:32:07 +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
fffd0c395a - added new testcases for #657838 ("osc 0.130: osc repairwc fails totally - working copy useless") 2010-12-07 20:29:59 +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
8edf986c6b - added information about the "working copy inconsistent" error 2010-12-06 15:35:07 +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
1a0cea8a4d - fixed testsuite 2010-11-30 19:11:05 +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