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

751 Commits

Author SHA1 Message Date
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 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
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
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
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
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
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
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
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
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
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
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
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
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
ca794fe87f - added template support for a submitrequest accept/decline message 2010-11-14 18:32:02 +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
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
Ludwig Nussel
5cdc422774 update review/request docu and fix some status code parsing 2010-10-12 11:31:03 +02:00
Marcus Huewe
4229eb6197 - repairwc: repair a project wc (only missing '_apiurl' file so far) 2010-10-10 21:40:31 +02:00
Marcus Huewe
cc29db4551 - get rid of osc.core.init_project_dir
- moved cleaned up code to the Project class' "init_project" static method
2010-10-09 16:26:55 +02:00
Marcus Huewe
1b9825b8d8 - '_frozen' is no special storefile 2010-10-09 14:31:58 +02:00
Marcus Huewe
b08802e9fe - fixed do_my (was broken by commit 54513a23de but nobody noticed it so far) 2010-09-29 19:57:00 +02:00