1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
Commit Graph

1860 Commits

Author SHA1 Message Date
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