Ludwig Nussel
f8545f8dcf
use python-m2crypto for actually secure SSL
2009-10-02 11:25:59 +00:00
Marcus Hüwe
eab1349dff
- util/debquery.py: implemented dpkg's version comparison algorithm
...
- util/packagequery.py: added epoch() method
2009-09-29 12:32:26 +00:00
Jürgen Weigert
6575669111
added expand_proj_pack() for suggested '.' handling.
2009-09-28 19:50:57 +00:00
Michal Cihar
c40738b2ea
Use non consuming expressions to allow escape more strings in one row.
2009-09-25 12:50:42 +00:00
Michal Cihar
eda5e9c38c
Escape ' at the begining of the line as it is command marker for roff.
2009-09-25 11:19:02 +00:00
Marcus Hüwe
4e30d9f946
- fixed get_request_list() call
2009-09-24 14:14:11 +00:00
Marcus Hüwe
3cfe9db980
- show pending requests after branching a package
2009-09-22 23:31:10 +00:00
Marcus Hüwe
39a92bc63b
- removed debug statement (to print out urls add "debug=1" to your ~/.oscrc)
2009-09-22 19:08:51 +00:00
Marcus Hüwe
1130e28061
- always use the latest version of a package (in case the dir contains multiple versions of a package) when running "osc build --prefer-pkgs /path/to/pkgs"
2009-09-21 17:29:20 +00:00
Marcus Hüwe
5083dfd6d0
- it's lib/rpmvercmp.c instead of rpmio/rpmvercmp.c...
2009-09-21 16:51:38 +00:00
Marcus Hüwe
8c14808dd1
- util/rpmquery.py: implemented RPM's version comparison algorithm as described in rpmio/rpmvercmp.c
...
- util/packagequery.py: added vercmp(pkgq) method
- util/debquery.py: currently vercmp(degq) is only a dummy method. The real implementation will follow soon.
2009-09-21 16:47:54 +00:00
Marcus Hüwe
cc6d7413fb
- fix for older python versions
2009-09-20 17:19:33 +00:00
Marcus Hüwe
2123e136e0
- osc build: if the --jobs option is omitted use '--jobs #<available processors>' (patch by Cristian Rodriguez <crrodriguez@suse.de>)
2009-09-20 15:59:46 +00:00
Marcus Hüwe
0c5a9528e3
- check for pending requests after executing an action (e.g. checkout, update, commit). This check is disabled by default. (requested by darix)
2009-09-18 01:10:41 +00:00
Marcus Hüwe
b195202be5
- allow empty config values (e.g. "foo=")
2009-09-16 23:28:20 +00:00
Marcus Hüwe
6ca6a10955
- added support to checkout a request's source package (osc request co ID)
2009-09-16 21:39:45 +00:00
b51caeaa31
0.122 is in openSUSE:Tools, go for 0.123 ...
2009-09-15 13:54:28 +00:00
Marcus Hüwe
62be2245e7
- util/rpmquery.py, util/debquery.py: added "filename_suffix" attribute
...
- fetch.py: also rewrite the filename for debian packages (this is only useful for older obs instances)
2009-09-13 17:25:48 +00:00
Marcus Hüwe
eec733fda5
- ignore release if not present
2009-09-13 16:57:40 +00:00
Marcus Hüwe
fbd1fca228
- use correct apiurl when calling meta_exists()
2009-09-12 23:58:56 +00:00
Marcus Hüwe
6ff386b710
- added debian support for "osc build ... --prefer-pkgs /path/to/pkgs/"
2009-09-12 23:55:56 +00:00
Marcus Hüwe
4bb893a114
- added the following new modules:
...
* util/packagequery.py: it's used to query a RPM or DEB package. It also contains a
base class for all package types (PackageQuery())
* util/debquery.py: query a DEB package (name, version, release, provides, requires etc.)
- adapted util/rpmquery.py to use PackageQuery() as a base class
- minor changes in util/ar.py
2009-09-12 19:02:58 +00:00
Marcus Hüwe
3b0d879753
- added support for the "inject local rpmdata" stuff:
...
* it's possible to use local packages for a build which don't exist in the obs
* currently only rpms are supported but debian support will follow soon
2009-09-10 12:18:07 +00:00
Marcus Hüwe
e95e8438e4
- backport fix from oauth branch: if we POST data the content-type should be "application/octet-stream" otherwise it will lead to strange errors when POSTing cpio archives
2009-09-10 12:04:41 +00:00
2d3be21964
adapt source update flags for new <option> block
2009-09-10 08:48:44 +00:00
Marcus Hüwe
d016b3d4f0
- class CpioWrite(): use a valid file mode (default: regular file with permissions 0644)
...
- removed debug output
2009-09-09 21:25:55 +00:00
Marcus Hüwe
2300afea7e
- merged cpio.py and util/cpio.py:
...
* renamed classes to CpioRead and CpioWrite
2009-09-09 16:02:02 +00:00
Marcus Hüwe
cb16432cd9
- get rid of rpm-python:
...
* so far it was only used for querying rpms which can be done with the rpmquery module
- core.py:
* removed data_from_rpm() and tag_to_rpmpy() methods
- util/rpmquery.py:
* added staticmethod "query()"
- commandline.py, fetch.py:
* use rpmquery module instead of rpm-python/data_from_rpm()
2009-09-09 15:28:21 +00:00
Marcus Hüwe
221fe84d1a
- added rpmquery module:
...
* this module can be used to retrieve data from the rpmheader
* Note: for now the signature header is completely ignored
2009-09-09 14:39:53 +00:00
56f1f9144b
bail out with error message when an incomplete package description is
...
part of buildinfo. Happens when "Preinstall"ing a non existing package
for example.
2009-09-09 08:17:13 +00:00
41d181dadf
prepare 0.122 release
2009-09-08 13:49:29 +00:00
Michal Marek
e312cc1916
Unbreak 'osc api'
...
Commit 7947 doesn't mention do_api at all in it's log message, yet it breaks
it.
2009-09-08 13:24:54 +00:00
ab73a24162
ups ...
2009-09-08 11:16:21 +00:00
48e96a96fb
+ - make buildhist command usable without checked out package
...
+ - rename old "platform/s" names to "repository/ies" (internal cleanup only)
2009-09-08 08:14:27 +00:00
Jürgen Weigert
7ea7ecee3d
-
2009-09-07 18:49:01 +00:00
eadf7999cb
add a hint "sr" in source revision log that the id comes from the submit request
2009-09-07 07:28:00 +00:00
Marcus Hüwe
99a75fa2e8
- fixed get_config()
2009-09-06 21:19:40 +00:00
e040ae85f5
- support modification flages on creation of submit request
...
(for auto update or clean up packages or to avoid it, when submit request got accepted)
- show request ids from package source logs
2009-09-05 13:46:55 +00:00
5f35c67b63
fix keyring usage for an additional OBS instance
2009-09-05 10:09:03 +00:00
6648377870
* add python-keyring support
...
* We may remove direct gnome keyring support later (there are currently
reports of users who can't access obs anymore when not using gnome)
* do not write passwords to .oscrc if keyring is available and used
2009-09-04 17:48:53 +00:00
d8160a957f
and rever again the osc req shortcut.
...
Juergen, this conflicts with the old api call and you get a error
message on each osc call.
2009-09-04 16:02:59 +00:00
8a28a45c6f
silence for kde users who have gnome-keyring installed
2009-09-04 12:24:35 +00:00
Marcus Hüwe
de9843405d
- minor cleanup
2009-09-04 01:11:41 +00:00
Marcus Hüwe
08cfb45142
- do_branch: interpolate 'getpac_default_project' config value in the help text
2009-09-03 21:32:36 +00:00
Jürgen Weigert
bcb16c3320
more tabs expanded
2009-09-03 19:00:09 +00:00
Jürgen Weigert
56d4f12dbd
- make osc getpac really get the package (instead of branch only)!
...
- expanded several tabs to spaces.
- added default project to new getpac and bco subcommand. .oscrc:getpac_default_project = OpenSUSE:Factory
(not added to branch subcommand, to not interfere with its syntax.)
2009-09-03 18:08:43 +00:00
Jürgen Weigert
6babfdf04d
- added missing code for 'osc sr -l [ID]'
...
- allow osc req as shortcut for osc request.
- allow osc cat with one parameter, if it is a url.
- core.py:makeurl() now prints the url for educational purposes if osc -v -v
2009-09-03 17:28:27 +00:00
c2cee79679
support source services better:
...
* offer updating version from server
* executing them locally on update or build
2009-09-03 14:56:48 +00:00
5f9127cd6c
fix "my request" call (haven't I did this before ?)
2009-09-03 11:25:12 +00:00
fec32ed9e4
rejected is no valid request state. Even though it got used in the past
...
:/ (but this will fail in future)
2009-09-01 15:44:57 +00:00
4b64daa13d
fix initial creation of .oscrc
2009-09-01 12:18:04 +00:00
816ed7bfb5
0.121 released, go for 0.122
2009-09-01 11:58:04 +00:00
cf8a20cc95
* drop client side filtering, fails in "all" case and should anyway
...
happen on server side
2009-08-31 20:34:01 +00:00
9e67dae8b7
bring back sr --diff option
2009-08-28 07:33:16 +00:00
06dc5b9aae
avoid warning about missing diff option during creating sr
2009-08-28 06:46:20 +00:00
17508f3d83
* avoid hardcoded list request states for "all" case
2009-08-27 14:58:47 +00:00
86c110f1e9
provide backward compatibile exclude_stuff , even though it should not
...
be used anymore
2009-08-27 14:37:25 +00:00
80de17208d
revert changes which introduce inconsitencies or will conflict with
...
later developments.
2009-08-27 13:32:55 +00:00
96edadb3c4
Juergen !
...
trunk is NOT your private playground for your private version numbers !
2009-08-27 13:06:12 +00:00
Michal Vyskocil
75cd1dcfa6
parse_disturl function
2009-08-26 14:58:53 +00:00
Michal Vyskocil
816a982acf
added missing delPerson function
...
do_maintainer relly on delPerson, which did not exists. It is
taken from old delMaintainer function with role handling.
Fixed also some issues in do_maintainer role handling
2009-08-26 14:22:54 +00:00
Marcus Hüwe
5eb2364c3d
- "plaintext_passwd" and "checkout_no_colon" should be booleans
2009-08-21 22:22:12 +00:00
Marcus Hüwe
e3c9e30ca0
- do_request list:
...
* --mine + --user and --all + --state options are mutually exclusive
* fixed "--all" and "--state all" options
2009-08-21 21:31:45 +00:00
Marcus Hüwe
585ab3564d
- fixed store_read_package() and store_read_project()
2009-08-21 20:43:08 +00:00
Marcus Hüwe
b0000b2834
- more or less only some minor cosmetic changes
2009-08-21 19:39:12 +00:00
Marcus Hüwe
580510c97a
- use existing methods to check if a dir is a project or package dir
...
- fixed exception code (there was no Exception() instance "e")
2009-08-21 16:43:46 +00:00
Marcus Hüwe
1a5bb12218
- added support for config variables in a help text
2009-08-21 14:55:26 +00:00
Marcus Hüwe
f1c8847879
- conf: initialize config with the default values. This fixes the manpage generation problem
2009-08-21 12:03:09 +00:00
Jürgen Weigert
403576b952
- hack for _help_preprocess_cmd_option_list to survive setup.py build
2009-08-21 11:25:07 +00:00
Jürgen Weigert
f2a738d4b6
Thanks Marcus, for looking into my FIXME's -- I could have never done
...
that preprocess helper for --days myself.
0.121.jw03
- fixed osc req list -U to not look into the local dir
- added osc my ... pkg/prj/req shorthand commands
- add 'osc se' alias for 'osc search -e'
- add -b -m -M to 'osc search'
2009-08-21 01:26:37 +00:00
Marcus Hüwe
5639b2b9a7
- added support to use config values in options' help text
...
- do_request: minor change in the --days option handling
2009-08-21 00:42:51 +00:00
Jürgen Weigert
83b1b5ca59
All in one go.
...
0.121.jw02
- made rresults an alias for results. python decorators are a strange concept...
- asserting that ~/.oscrc remains mode 0600
- no more plain text passwords in ~/.oscrc, we store now as bz2+base64
- added verbosity control -v -q. To be used in guess_proj_pack()
- added 'll' and 'ls -l' as shorthand to 'list -v'
- started to change to explicit dual license GPLv2 or GPLv3 to conform to Novell policy.
- added revision parameter to show_upstream_srcmd5(), so that it can be used in do_cat later.
- allowed both integer and srcmd5 revisions in meta_get_filelist()
- added 'lL', 'LL': allowed -e and -v together in do_list(). Was an internal error before.
- added cat -e, to cat a file through a link.
'cat -e -r 3' expands through the third revision of the _link.
- added subcmd bco as alias for branch -c
- added default project to branch subcommand. .oscrc:branch_project = OpenSUSE:Factory
- added primitive experimental support for .oscrc:checkout_no_colon = 1
- suggest using svn when .svn found.
- alias submitpac submitrequest
- osc bco now continues to checkout after branch target exists error.
- added .oscrc:plaintext_passwd=1 for backwards compatibility
- moved core.py:exclude_stuff to .oscrc:exclude_glob and expand it to catch *.orig etc.
- allowed req as alias for request.
- bugfix get_request_list: use 'or' with multiple states, not 'and'.
- added osc req list -s all; a shorthand for enumerating all states
- osc req list no longer confuses creator with approver.
- osc req list -D nnn limit to requests nnn days old.
- osc req list now also shows requests from the the given package, not only to.
- improved help texts with repairlink to point to osc resolved.
- improved passx code when creating oscrc.
- osc sr -l is now a shortcut for 'osc req list -M -a -t submit -D 0'
2009-08-20 19:28:05 +00:00
090e79964c
* use a release number setting on local build, if it is given by the server.
...
Otherwise just use 0 as fallback
2009-08-20 10:45:39 +00:00
2a180fa346
new packages gets checked out expanded when using "osc up -e" in project
...
directory now.
2009-08-19 13:07:58 +00:00
Jan-Simon Möller
d2c9b0707d
Add -a/-s all option to osc rq list. It preselects all states for the query.
2009-08-19 13:00:22 +00:00
906972d5f0
fix req_who (aka rq ls -M) of processed requests
2009-08-19 12:21:45 +00:00
Ludwig Nussel
1e8d490ae2
open editor to enter message for submit and other requests
2009-08-19 11:28:16 +00:00
Ludwig Nussel
7e3cbabd0d
prompt for message also when comitting entire projects
2009-08-19 11:28:10 +00:00
Jan-Simon Möller
853c2c5dcb
Add support for --overlay and --rsync-{src,dest} to build and osc.
...
--overlay OVERLAY
Copy overlay filesystem to buildroot after installing
all RPMs. This must be a valid directory.
--rsync-src RSYNCSRC
Copy overlay folder (RSYNCSRC) to a folder (RSYNCDEST)
inside the buildroot using rsync.
It will "%define RSYNCDONE 1" for handling %setup in your
specfile. E.g.:
%prep
%if 0%{?RSYNCDONE}
%setup -n aaa_base -T -D -b 5 -b 7
%else
%setup -n aaa_base -b 5 -b 7
%endif
--rsync-dest RSYNCDEST
Todo: tell rpmbuild not to delete the folders.
2009-08-18 21:28:33 +00:00
Marcus Hüwe
4e32d4dc41
- moved options check to the beginning
2009-08-11 23:01:03 +00:00
Marcus Hüwe
039634c359
- fixed repairlink
2009-08-11 22:58:23 +00:00
Marcus Hüwe
863bd5664d
- buildarch (=scheduler/repo arch) should be the correct fallback
2009-08-09 18:10:13 +00:00
f01be2f625
* keep _service: files local only.
2009-08-07 12:18:15 +00:00
b25b248a2e
do not crash, if nothing is specified. ( #526401 )
2009-08-07 09:25:34 +00:00
2f7070ae96
can it be that hard ...
2009-08-07 07:51:00 +00:00
e199ab3a09
and now do it right :/ (sorry, was before coffee)
2009-08-07 07:48:52 +00:00
9b722d61f4
reqeuest list -s X,Y was broken, a state can have only one value. And
...
there is no personality splitting in OBS either ;)
2009-08-07 07:32:10 +00:00
690857d452
fix build of multiarch products. This was wrong in general and affected
...
all builds. So we may see some other breakage somewhere else.
2009-08-06 12:50:53 +00:00
Michal Vyskocil
cfc9c2a1b2
Fixed help of do_commit, added info how disable checks
2009-08-05 05:54:12 +00:00
Marcus Hüwe
473270ec84
- typo
2009-08-04 21:10:23 +00:00
Marcus Hüwe
b742d58794
- determine pacsuffix from buildtype (slightly modified version of David Greaves' <david@dgreaves.com> patch)
2009-08-04 16:01:02 +00:00
Marcus Hüwe
ddd9e0206d
- added config option to disable the filelist check before commit permanently
2009-08-04 14:12:45 +00:00
Michal Vyskocil
101bcef086
proper handling of removed files
...
Removed files should be hanlded too, so the code will iterate through
non-dirs, instead of files only. Plus the default action for '!' files
is remove.
2009-08-03 15:20:17 +00:00
Michal Vyskocil
724f577b41
More options in commit filelist change
...
osc commit check for '?' files can be supressed by -f/--force option
It also have more options. File can be easily added, removed or the
whole filelist should be opened in editor and edited (this is very close
to git rebase --interactive behavior).
2009-08-03 13:03:24 +00:00
Marcus Hüwe
365be249c3
- slightly modified version of David Greaves' <david@dgreaves.com> patch to add a --map-repo option to aggregatepac
2009-07-31 14:31:20 +00:00
Michal Vyskocil
2d1126b847
osc commit asks if some file has a '?' status
2009-07-31 11:32:34 +00:00
0d2e353188
* do not erase package meta data when doing linkpac
...
* do not anymore implicit add maintainer to package
2009-07-30 09:42:09 +00:00
4df5334115
fix set devel project, if no project or package is set
2009-07-28 14:50:23 +00:00
Dr. Peter Poeml
2900aecea4
osc rdiff: try to make the help text a little clearer
2009-07-27 20:03:01 +00:00
Marcus Hüwe
5d12cff640
- request list: project is optional too (if no project/package is specified list all)
2009-07-24 19:15:51 +00:00
21bd79bc56
fix change devel requests help
2009-07-23 08:01:31 +00:00
0094d86316
add missing build status symbols
2009-07-20 09:43:01 +00:00
Marcus Hüwe
9f8c7398b4
- fixed #521895 ('osc vc crashes'): only use and store proper apiurls this means no trailing slashes etc.
2009-07-16 12:07:14 +00:00
Marcus Hüwe
d2dee3c525
- it's 'osc' not 'svn';)
2009-07-15 21:16:34 +00:00
Marcus Hüwe
17a8ae894a
- changed delete logic: only remove the localfile and keep the store file. The storefile is kept unless the wc is committed - this is useful for something like "osc revert".
...
- added delete_file() method to the Package class which takes care about the "file deletion logic"
2009-07-15 21:10:38 +00:00
Marcus Hüwe
b30611885d
- fixed #521335 : exclude files which are named '#<file>#' (according to this bug #<file># is sometimes used as a backup file)
2009-07-15 19:59:01 +00:00
Marcus Hüwe
6492b73677
- add partname and fullpartname attributes to Pac() class
...
- cleanup partial files in case the user hits ctrl-c
2009-07-15 19:48:16 +00:00
Marcus Hüwe
964d921d39
- fixed do_copypac()
...
- copy_pac: when doing a client side copy don't do a commit for each file
2009-07-15 18:53:47 +00:00
Ludwig Nussel
8fcd6e3371
add -d option to sr to only show a diff
...
Much more convenient than having to assemble the rdiff command line
manually.
2009-07-13 09:36:19 +00:00
ecf88a57bc
* initial support for OBS source services
...
* TODO: local service tool calls
2009-07-10 18:10:41 +00:00
Michal Vyskocil
009713db18
new force argument for update_package_meta
2009-07-10 14:20:02 +00:00
Michal Vyskocil
193c59c6dc
osc wipebinaries: don't force --all parameter, if -r/--repo or -a/--arch is used
2009-07-07 14:31:59 +00:00
Michal Vyskocil
02434152f1
new osc rremove command
2009-07-07 14:30:15 +00:00
Stephan Binner
257ae15d20
improve osc request help
2009-07-07 14:15:39 +00:00
Michal Vyskocil
9661594cb3
new osc.core.delete_files function
2009-07-01 11:19:55 +00:00
Marcus Hüwe
8672848798
- fixed #507367 ("osc ci does not report conflict")
2009-06-27 01:07:18 +00:00
Michal Marek
599279a28f
Change the warning about 'scheme' and 'apisrv' to something not as confusing.
2009-06-23 19:35:00 +00:00
5750e7278c
ups, typo fix
2009-06-23 16:04:57 +00:00
ccdfcf7959
* Improve usability when listing or showing requests.
...
* support multiple actions in show
2009-06-23 14:14:07 +00:00
16d56fb2c4
do only ask to revoke sr if existing one contains a 'submit' type
2009-06-23 12:02:01 +00:00
Michal Cihar
d6a8ac3fbb
Better escaping regexps.
2009-06-23 10:09:48 +00:00
Michal Cihar
804979d671
Same description for arguments PLATFORM and ARCH in all places.
2009-06-23 10:06:31 +00:00
87067cd0aa
add --role option to maintainer command
2009-06-19 13:57:27 +00:00
Stephan Binner
c76ac4dd5e
fix request help
2009-06-19 13:10:33 +00:00
f4fcc4101b
0.120 is about to get released, switch to version 0.120.90
2009-06-19 09:07:08 +00:00
Michal Vyskocil
56e79daeec
osc metafromspec allows editing before send
2009-06-19 08:59:39 +00:00
Michal Vyskocil
ea39db700c
move metafile editing code from edit_meta to metafile.edit() method
2009-06-19 08:56:33 +00:00
Michal Vyskocil
2f1c5f2627
properly create url for metafile constructor
2009-06-19 08:47:06 +00:00
Michal Vyskocil
d764905730
use metafile in update_package_meta
2009-06-19 08:32:56 +00:00
a2566a0a6f
jump to version 0.120
2009-06-18 19:55:16 +00:00
01c20380f6
fix listing of delete requests again
2009-06-18 17:54:02 +00:00
7ef5e04cc9
* "osc maintainer" is following to the development project / package now
...
* "osc maintainer" list maintainer and bugowner roles now
* rename addDevelProject to setDevelProject since the devel element is
only allowed once
2009-06-18 16:20:49 +00:00
d017b16426
* add "osc request list -t <type>" to list only submit, delete or
...
develchange requests
* fix support of listing requests with multiple actions
2009-06-18 13:49:23 +00:00
626aa36925
* bump version to 0.119.90 to show that this is a pre version
...
* support setlinkrev for entire projects (request from Moblin team)
* support setlinkrev -u for removing rev elements
2009-06-18 09:18:17 +00:00
5275bdac01
do not fail on listing requests, when delete requests exist
2009-06-18 08:11:34 +00:00
Marcus Hüwe
8f2a3b7580
- renamed OpenSUSE to openSUSE (I think that's the correct spelling atm)
2009-06-17 18:19:45 +00:00
Marcus Hüwe
c9eec70b74
- always add a newline (even if no template is specified so that the user can directly enter the msg)
2009-06-17 18:18:12 +00:00
Michal Vyskocil
bde7cb79c8
osc results: show details also for 'blocked' state
2009-06-17 12:50:53 +00:00
Michal Cihar
a574dbb3aa
Add proper escaping of - in man page.
2009-06-17 09:28:10 +00:00
Michal Cihar
2af8cbbf7e
Missing preposition.
2009-06-16 13:31:11 +00:00
Michael Schröder
d57c82fbec
- calculate canon name from downloaded rpm, as the server may
...
give us the wrong/missing information
- also fixes builds with packages from interconnected build services
2009-06-16 12:15:41 +00:00
Dr. Peter Poeml
027a0e5be1
Remove the Python 2.4 incompatibility introduced with r7507.
2009-06-16 12:14:20 +00:00
4c60d1b285
rename "rebuildpac" to "rebuild", but keep "rebuildpac" as alias.
...
This command works also for whole projects and we get rid of another
place of pac/pkg statements.
2009-06-15 15:38:39 +00:00
60ecca1dc1
new osc linkpac -f to allow to override existing _link files, patch by
...
Michael Meeks
2009-06-15 15:19:16 +00:00
Michal Vyskocil
b611ddb00b
do not produce traceback if list of platforms is empy
2009-06-11 11:38:06 +00:00
Michal Vyskocil
d85d38f613
smarter default platform for osc build
2009-06-11 11:32:58 +00:00
Dr. Peter Poeml
8aadd6e400
osc search: shorten the if branch by eliminating the late else. No functional
...
change should result from this.
2009-06-09 17:07:02 +00:00
Dr. Peter Poeml
51726bb28b
osc search: sort search results.
2009-06-09 17:04:31 +00:00
Dr. Peter Poeml
4c73a41e7b
osc update:
...
- Sort the list of packages before updating. This makes it easier, when
updating a project with many packages, to follow progress.
2009-06-09 09:34:25 +00:00
Ludwig Nussel
9452d717cb
don't query submit list request twice
2009-06-09 09:29:24 +00:00
Marcus Hüwe
7e76a8c269
- do_submitrequest: only support create otherwise if we call e.g. "osc sr list <project> a new submitrequest will be created (instead of listing the reqs for <project>)
2009-06-05 21:45:29 +00:00
Dr. Peter Poeml
18273d470b
When updating working copies, replace the .osc/_files file in an atomic way,
...
preventing hosed working copies when the update is interrupted. An empty
.osc/_files file could result, leading to the following sympton upon subsequent
update:
% osc up
'foobar' is not a valid working copy.
When parsing .osc/_files, the following error was encountered:
no element found: line 1, column 0
2009-06-05 19:42:33 +00:00
Dr. Peter Poeml
35be8342e3
core: fix the dgst_from_string function for Python 2.4 compatibility. It can't
...
have worked and must have returned empty md5 hashes, and I assume that the
function isn't actually used anywhere.
2009-06-05 11:29:11 +00:00
9ef41fde95
fix usage of correct api when calling "osc results" without parameters
2009-06-05 06:13:08 +00:00
dccc2d41cb
add more warnings, pointing user to new syntax
2009-06-05 05:46:20 +00:00
5de58e99e2
disable "osc req" for now to point people to the change
2009-06-04 15:20:25 +00:00
Marko Jung
a02ce1389a
- fixed exception handling
2009-06-04 15:20:22 +00:00
b556208cd4
rename "req" command to "api".
...
req clashes with request command and this command is not intended for
usual user usage.
2009-06-04 14:14:01 +00:00
49ceab6ab8
jump to version 0.119 to avoid problems with 0.118 snapshot packages
2009-06-03 11:37:21 +00:00
e46cba2084
- justify comments from Jan-Simon, reflecting that the former behaviour
...
was a bug actually. Only packages from buildinfo must be available in
repos.
- add news entry about fixed image building
2009-06-03 11:35:03 +00:00
Jan-Simon Möller
95a935b1dc
Link only the needed packages and not the packagecachedir for 'osc build config.kiwi' .
2009-06-03 10:10:51 +00:00
9050882b78
sync help with default function name
2009-06-03 07:43:37 +00:00
dc81d5f278
new request syntax as proposed on ml.
...
will roll a beta version from this later today for more feedback.
2009-06-02 14:57:42 +00:00
46d726133c
import new request handling from branch:
...
- New generic "request" command:
- new "delete" request
- new "change_devel" request
- Multiple actions in one request is not yet supported by osc
2009-06-02 13:14:46 +00:00
Michal Vyskocil
0158d5e377
call buildvc with all command line arguments
2009-06-01 12:20:53 +00:00
Michal Vyskocil
ee9ae8dcb1
do not pass '' with commit message
2009-06-01 12:16:17 +00:00
Pavol Rusnak
53eb08ffa3
don't wipe all binaries by default, --all is needed now
2009-05-31 11:00:03 +00:00
Michal Cihar
51228e2e22
Fix few typos in help texts.
2009-05-27 12:09:50 +00:00
Pavol Rusnak
81b8de831c
unify log/rlog , prjresults/rprjresults, results/rresults (r-versions are obsoleted now)
2009-05-25 11:33:04 +00:00
Pavol Rusnak
17cec67b98
take project and package from .osc in rlog and rresults
2009-05-25 10:41:16 +00:00
Pavol Rusnak
776a069df9
add binary flag to open where needed
2009-05-22 15:00:31 +00:00
Pavol Rusnak
e97c1de936
add more checks when working with mmap.mmap
2009-05-22 14:43:39 +00:00
Michal Vyskocil
5f19030580
rbuildlog alias for remotebuildlog command
2009-05-21 12:05:39 +00:00
Michal Vyskocil
51f0ef2ae0
fixed IndexError in commandline.py:996 when linked to project without 'branches:' in name
2009-05-21 09:13:34 +00:00
Pavol Rusnak
3f6fa3a0b6
fixed typo
2009-05-20 16:45:27 +00:00
Pavol Rusnak
0fa507a782
mmap.mmap works differently under windows
2009-05-20 16:42:17 +00:00
Pavol Rusnak
8f38f169d5
os.path.samefile is available only under Unix
2009-05-20 16:32:45 +00:00
Marcus Hüwe
0ed00292ee
- it should be 'apiurl' instead of 'apisrv' (this was changed in r6547)
2009-05-19 16:40:39 +00:00
Pavol Rusnak
a7c2956ac7
fix bug in get_submit_request_list call
2009-05-18 16:01:07 +00:00
Pavol Rusnak
7406d0ed34
added diff -c option (show change of revision X = diff -r X-1:X)
2009-05-18 14:50:43 +00:00
Marcus Hüwe
eeba81ad26
- fix for older python versions
2009-05-17 13:07:55 +00:00
Marcus Hüwe
b5b04124c4
- LinkExpandError inherits from PackageError (display affected project and package in error message)
2009-05-15 19:08:14 +00:00
Marcus Hüwe
815ca58dc8
- cosmetic: save one level of indention
2009-05-15 15:32:15 +00:00
Marcus Hüwe
5b3a55091d
- fixed typo
2009-05-15 15:25:09 +00:00
Dominique Leuenberger
f97f287ce7
Extend submitreq list with new optional parameter -M. When given, it will limit the list to the user's own requests.
2009-05-15 12:41:27 +00:00
Pavol Rusnak
68152d9faf
fix typo (false -> False)
2009-05-15 12:31:59 +00:00
Pavol Rusnak
121b20c63c
more fixes for Windows port
2009-05-15 11:40:50 +00:00
Michal Vyskocil
b6246d7695
--xml output for results and rresults command, results_meta is obsoleted
2009-05-15 09:24:53 +00:00
Michal Vyskocil
4676bd6ddf
added default=[] for -r and -a options in all results commands
2009-05-15 08:48:32 +00:00
Michal Cihar
e12100fc48
osc search can now output CSV
2009-05-15 08:33:25 +00:00
Michal Cihar
1f76cd0c19
- Allow build_table to generate CSV.
...
- Avoid some code duplication inside it.
2009-05-15 08:32:48 +00:00
Michal Cihar
0d3a98ce5b
"involved projects" is not really good description of this
2009-05-15 08:07:03 +00:00
Michal Vyskocil
011426d885
-r|--repo and -a|--arch options for results, rresults and results_meta commands
2009-05-15 07:16:26 +00:00
0648a8c555
- new option for copypac
...
* -r to specify source revision
* -m to specify a comment (and send default comment if not specified)
mmeeks, jpr: this is for you :)
2009-05-14 11:50:53 +00:00
2c42287a98
Add support to get build logs starting from a given offset
...
(from Ming Xi Wu)
2009-05-14 11:09:26 +00:00
Michal Cihar
0f3c3d8eaf
new jobhistory/buildhistory output format (CSV)
2009-05-13 09:04:27 +00:00
Michal Cihar
208c0f7f44
Add srcmd5 to XML log.
2009-05-13 08:57:24 +00:00
Michal Cihar
63590a80be
new log/rlog output formats (CSV and XML)
2009-05-13 08:53:32 +00:00
Michal Cihar
92ff8996d4
osc linkpac can not specify cicount attribute
2009-05-13 07:59:01 +00:00
Jan Matejek
9f739f5e87
disable '%' expansion on username and password
2009-05-12 16:17:15 +00:00
Pavol Rusnak
7c27fac55e
add 'ar' alias for addremove command
2009-05-11 13:21:33 +00:00
Michal Cihar
7074362e90
osc can now store credentials in Gnome keyring if it is available (bnc#460540)
2009-05-11 07:46:01 +00:00
Marcus Hüwe
72532fb016
- rresults: allow arguments which a separated by a "/" (e.g. prj/pkg)
2009-05-10 20:29:34 +00:00
Marcus Hüwe
ef94ae807c
- use apiurl parameter
2009-05-08 19:37:06 +00:00
Marcus Hüwe
fb992a24fc
- fix for older python versions
2009-05-08 18:54:26 +00:00
Marcus Hüwe
287d8c2fbd
- move check to the correct place (otherwise args[0] might lead to an IndexError exception)
2009-05-07 19:41:02 +00:00
Marcus Hüwe
2baad18f1f
- use list comprehensions instead of map/lambda (this is more pythonic:) )
2009-05-07 19:13:50 +00:00
Marcus Hüwe
dffa7317eb
- small fixes (target_package and target_prj were referenced but in some cases there was no assignment before)
2009-05-07 18:43:04 +00:00
5684a992dd
extended error message on unresolved files to point people to "resolved"
...
command.
2009-05-07 13:02:22 +00:00
Michal Cihar
e5563bcaa4
Move osc specific bits to commandline module.
2009-05-06 13:20:15 +00:00
Michal Cihar
a30a1d595b
Add support for generating a man page.
2009-05-06 11:46:17 +00:00
Dr. Peter Poeml
09b50649ea
fix typo introduced in r7243
2009-05-06 10:08:08 +00:00
Marcus Hüwe
9adde950df
- fixed #499617 ("osc rbl hangs forever")
...
now we have a default timeout for all API requests (100 seconds)
2009-05-05 15:56:23 +00:00
Michal Cihar
85293d8770
plugins now should be placed in /usr/lib/osc to match FHS (the /var path is still supported though)
2009-05-05 14:21:56 +00:00
Michal Cihar
a02e40f273
Print help in more standard form so that help2man can parse it (bnc#471888).
2009-05-05 14:13:22 +00:00
Michal Cihar
aedeea317c
Drop shebang line from modules (bnc#500971).
...
(Some did have it and some did not, this way it is consistent and they
are anyway not supposed to be executed directly.)
2009-05-05 14:11:25 +00:00
Michal Cihar
885c72af77
Fix syntax errors with Python 2.4 (bnc#500968).
2009-05-05 14:07:00 +00:00
Michal Cihar
cdcca2746d
Add rlog support for srcmd5 (bnc#460538).
2009-05-05 14:01:41 +00:00
Martin Mohring
5097f48c50
- fixed: another fix for arm
2009-05-04 21:44:44 +00:00
3df88ab765
Consolidating delete commands:
...
* obsolete deletepac and deleteprj to delete and rdelete commands.
- enable package tracking by default
* add support to hide commands in help list (so we can show propper
help when people still try to use it).
seife: this is for you, drop your own scripts emulating it :)
2009-05-04 19:07:05 +00:00
Martin Mohring
5b4f958cbc
- fixed: non cross build arm support
2009-05-04 19:01:17 +00:00
Martin Mohring
528cc81de2
- fixed: let users use osc for arm also on native arm machines
2009-05-04 18:48:41 +00:00
Michal Vyskocil
ad88054cf8
osc submitreq create DESTPRJ [DESTPKG]
2009-05-04 12:53:03 +00:00
51f941886c
Allow pulling conflicting changes from another project via "osc
...
repairlink"
2009-05-04 09:13:35 +00:00
Vincent Untz
006eeb756b
- fix default value for req_state in get_submit_request_list(): it's a list,
...
not a single string.
2009-05-03 08:57:29 +00:00
Marcus Hüwe
cf413bf953
- fixed #495823 ("osc leaves stale .osc/_to_be_deleted")
2009-04-28 20:31:02 +00:00
Michal Vyskocil
3e837ce9d8
bugfix: templates in edit commit message causes an empty commit logs
2009-04-28 07:15:57 +00:00
Marcus Hüwe
1ec537e9de
- fixed #498330 ("buildlog inserts bogus newlines")
2009-04-27 18:30:00 +00:00
e2524f036d
find and list debian sources in build root
2009-04-27 11:44:38 +00:00
Michael Schröder
38446b0749
- clean up files if diff3 did the job
...
- first try baserev before querying lastworking
2009-04-27 10:09:38 +00:00
Michal Vyskocil
af5259b387
support of added .changes in commit message template
2009-04-27 08:54:59 +00:00
Michael Schröder
004ca3cafe
- speed up osc sr list
2009-04-27 08:50:58 +00:00
7481112018
- print 'Trying upstream server for %s (%s), since it is not on
...
%s.' \
+ print 'Trying openSUSE Build Service server for %s (%s), since
it is not on %s.' \
when downloading from frontend server ("upstream" made people thinking
the files come from the servers like source forge).
2009-04-27 07:32:00 +00:00
Marcus Hüwe
8cc699fe01
- fixed #497987 - live buildlog was broken
2009-04-24 18:17:12 +00:00
Brandon Philips
4a924553b2
Cleanup usage information on osc co PACKAGE
...
The usage information on osc co PACKAGE was a bit confusing and one of
the descriptions was inaccurate. Remove the inaccurate description and
improve the language on the clearer one.
2009-04-23 23:59:40 +00:00
Brandon Philips
415143d548
Restore osc co -c feature after commit r7103
...
Commit r7103 broke the osc co -c feature to checkout a package to the
current directory. Restore it.
2009-04-23 23:57:59 +00:00
Michael Schröder
eb14b3c2a4
- fix show_files_meta call
2009-04-23 09:23:13 +00:00
Michael Schröder
54300936f0
- don't diff binary files
2009-04-23 09:03:59 +00:00
630084b582
* harmonize parameters of repairlink with other commands
2009-04-23 08:58:21 +00:00
Michael Schröder
3a5072e9c1
- allow empty linkrepair commits
2009-04-23 08:39:00 +00:00
Michael Schröder
fd41f0b236
- fix write_conflictlist function
2009-04-23 08:35:11 +00:00
Marcus Hüwe
f15d1dd57e
- get the correct apiurl user
2009-04-22 17:38:14 +00:00
Michal Vyskocil
a49d15edbd
just edit option for buildvc and osc vc commands, used /usr/lib/build/vc in osc vc
2009-04-22 14:44:17 +00:00
Michael Schröder
90cb8163b6
- fix test for modified files
...
- print message after the repairlink commit
- destroy upload revision if commit fails
- use "latest" when revision is not specified
2009-04-22 13:14:17 +00:00
7c423392e1
yet another place where wrong apiurl is used for getbinaries
2009-04-22 12:42:52 +00:00
9dfaf611f3
* revert rev=latest change, let mls do it right in all places.
...
* add hint to use "osc repairlink" on failed operations with links
* use correct target project and package name on repairlink
2009-04-22 12:32:29 +00:00
0c3d982ecc
use "latest" revision on checkout, not "upload" ( #441783 )
2009-04-22 11:37:40 +00:00
Michal Vyskocil
17cd24bb57
list view for osc submitreq show
2009-04-22 11:02:32 +00:00
Michael Schröder
f8f0ae8a55
- expand tabs
...
- use some core functions
- give user a hint what to do
- add NEWS
2009-04-22 09:06:13 +00:00
Michael Schröder
9dbfeeb2ef
- add 'osc repairlink' command
...
- pass revision correctly so that 'osc co' can checkout
an old revision again
2009-04-21 16:52:26 +00:00
b8642c4ee0
make getbinaries working in checked out directories
2009-04-21 09:46:32 +00:00
Michal Vyskocil
0bf3540cb2
osc vc command - uses a /usr/bin/buildvc from build.rpm
2009-04-20 13:40:33 +00:00
8b1882e7a9
* add support for kiwi builds in output results
...
* fix support for output directories, when they are not a symlink
2009-04-20 13:07:43 +00:00
b7ea9b64c0
revert a senseless part of last commit
2009-04-17 12:04:45 +00:00
89e2e73dca
- allow to specify target project and package on osc branch (requires
...
server version 1.6)
- add option to automatic checkout a branched package
2009-04-17 12:02:02 +00:00
65f540161f
just make it more robust, use the same variable for local dir.
2009-04-17 08:48:22 +00:00
20f8234d8c
support checkout of single packages via "osc co PACKAGE" when local dir
...
is a project dir.
2009-04-17 08:39:04 +00:00
Brandon Philips
6f99610590
osc: add -c flag to checkout PACKAGE dir in cwd instead of PROJECT/PACKAGE
...
A simple solution to the colons in project names messing up LD_LIBRARY_PATH:
http://lists.opensuse.org/archive/opensuse-buildservice/2008-12/msg00166.html
Example use:
$ osc co -c openSUSE:Factory osc
A $PWD/osc/debian.changelog
A $PWD/osc/debian.tar.gz
A $PWD/osc/osc-0.113.tar.gz
A $PWD/osc/osc.changes
A $PWD/osc/osc.dsc
A $PWD/osc/osc.spec
A $PWD/osc/ready
Versus without -c
$ osc co openSUSE:Factory osc
A $PWD/openSUSE:Factory/osc/debian.changelog
A $PWD/openSUSE:Factory/osc/debian.tar.gz
A $PWD/openSUSE:Factory/osc/osc-0.113.tar.gz
A $PWD/openSUSE:Factory/osc/osc.changes
A $PWD/openSUSE:Factory/osc/osc.dsc
A $PWD/openSUSE:Factory/osc/osc.spec
A $PWD/openSUSE:Factory/osc/ready
Signed-off-by: Brandon Philips <bphilips@suse.de>
2009-04-16 17:41:47 +00:00
Michal Vyskocil
41eb9614f0
commit message template
...
New functions:
osc.core.get_commit_message_template()
- check the differences in .changes
- extract them and add to the commit message
osc.core.dgst_from_string():
- same as dgst, but work with string argument
Modified functions:
osc.core.edit_message():
- new optional argument template
osc.commandline.do_commit():
- use get_commit_message_template to collect the changes and call the
edit_message with template argument
osc.core.edit_message():
- used dgst_from_string for header_orig value, so commit message could be
used as is with template. Used a mtime check for canceling support.
TODO: maybe is dgst_from_string unecessary
2009-04-16 13:48:37 +00:00
Marcus Hüwe
ca911fd99d
- bumped version to 0.116
2009-04-16 10:58:49 +00:00
e6815fc177
* use correct api url in checked out packages on setlinkrev command.
...
* make error message better matching reality
2009-04-16 08:13:55 +00:00
Marcus Hüwe
16f99519ed
- oops r7028 broke "osc search"
2009-04-15 17:30:13 +00:00
609e8f97b1
allow commit when files are in upload state on server without local
...
modifications. (#494370 )
2009-04-14 14:33:02 +00:00
Ludwig Nussel
299b969324
install gcc-c++ when using icecream (bnc#493550)
2009-04-14 11:33:50 +00:00
Ludwig Nussel
28fa87078d
re-add support for urllist config option for compatability
2009-04-14 11:33:45 +00:00
Marcus Hüwe
f4fd8ac0fe
- added missing close() to streamfile() (TODO: is this really needed?)
...
- get_source_file: use streamfile() retrieve the data
2009-04-09 16:14:29 +00:00
Marcus Hüwe
8282e232d8
- added streamfile() method
...
- print_buildlog: use streamfile() to retrieve the buildlog
- do_cat: use streamfile() to retrieve a file - there's no need to have a tempfile or to read the entire file into memory anymore
2009-04-09 15:52:59 +00:00
Marcus Hüwe
92759ad082
- SubmitReq class: replaced src_md5 attribute with src_rev
...
- use plain revision numbers instead srcmd5's when creating a submitrequest
2009-04-09 13:02:19 +00:00
Marcus Hüwe
7cad7f99c6
- small fixes for the last commit (r7055) (I hope it doesn't break anything..)
2009-04-09 11:44:32 +00:00
d547203c12
- support listings of older revisions with "osc ls -R"
...
- add --current parameter for linkpac to use current revision of source
package fixed.
- add osc setlinkrev to add or update revision number in links easily
- fix streaming of binary files via "cat" (#493325 )
2009-04-09 08:21:12 +00:00
c298692e68
add linkpac --current paramter to create links with revision number
...
included.
2009-04-08 11:48:34 +00:00
Marcus Hüwe
17327a3db9
--exact is more appropriate than --enable-exact (requested by darix)
2009-04-07 18:45:42 +00:00
Marcus Hüwe
595c94d1ca
- point the user to the README file
2009-04-07 11:13:57 +00:00
Marcus Hüwe
68f5d72061
- fix for #492369 ("no warning on failed osc expansion")
2009-04-06 20:08:14 +00:00
Marcus Hüwe
8b1081a2af
- added configuration migration information (it is also available in the wiki
...
http://en.opensuse.org/Build_Service/CLI#Configuration_migration )
- remove comments about ~/.netrc handling
2009-04-06 19:15:32 +00:00
Marcus Hüwe
d6c9693a47
--apiurl can be an alias
2009-03-31 13:29:16 +00:00
Marcus Hüwe
9ff9a1f151
- fixed #487400 : --disable-debuginfo will create no debuginfo packages and --debuginfo will create them. Both override the debuginfo element from the buildinfo
2009-03-31 11:45:30 +00:00
Marcus Hüwe
b910253bed
- added --expand option to 'osc ls'
2009-03-30 22:28:26 +00:00
Marcus Hüwe
4ed272b2a2
- fixed #490023 : add --expand option to copypac
2009-03-30 22:17:18 +00:00
Marcus Hüwe
5e16d98edd
- fixed #472831 ("missing apisrv in branch command")
2009-03-23 19:08:06 +00:00
Marcus Hüwe
7cd12cb501
- fixed #462389 ("Ask for commit before creating a new submitreq")
2009-03-22 16:04:19 +00:00
Marcus Hüwe
9d97bcb56d
- minor fix
2009-03-19 18:25:59 +00:00
Marcus Hüwe
6bf55c5415
- forgot the usual license stuff...
2009-03-19 13:58:04 +00:00
Marcus Hüwe
ab3403380f
- added cpio archive reader. Supported formats:
...
* ascii SVR4 no CRC also called "new_ascii"
- no directory/PIPE/blk etc. support atm. Some of it might be implemented later in case I'm bored:)
- format implementation is based on src/copyin.c and src/util.c (see cpio sources)
- it is needed to investigate #477690 ("osc fetching binaries really slow")
2009-03-19 13:52:00 +00:00
4e6c62c693
* go to version 0.115
2009-03-17 16:19:02 +00:00
752756eae1
complete link option descriptions
2009-03-17 16:13:04 +00:00
Marcus Hüwe
e5ff09152d
- be a bit more verbose and tell the user about the package tracking feature
2009-03-16 21:29:42 +00:00
Michael Schröder
b03614dff2
- provide extproject/extrepository reflecting the rexternal tree layout
...
(i.e. ':' replaced with ':/')
2009-03-13 15:58:55 +00:00
Olaf Kirch
88c5710757
- reverted previous fix, was broken
2009-03-12 16:35:40 +00:00
Olaf Kirch
98d7a04b97
- osc build: properly evaluate debuginfo status in Buildinfo
2009-03-12 16:24:53 +00:00
Marcus Hüwe
ce8027fc14
- partly fix #478516 : copypac: added --keep-develproject option
2009-03-11 15:23:23 +00:00
Marcus Hüwe
298fd445f9
- fixed #466997 ("osc ci" fails uploading large files to Provo BuildService)
2009-03-10 18:36:12 +00:00
Flavio Castelli
b88be07358
add rev variable to Linkinfo class: it holds the rev value specified inside the _link files
2009-03-09 13:44:14 +00:00
Marcus Hüwe
5d27d74ee4
- added __str__() method to the ArFile class
...
- when rereading a file setup the 'datastructs' again
2009-03-09 11:17:44 +00:00
Marcus Hüwe
296f274f67
- fixed #481208 ('osc build --local-package is completely ineffective')
2009-03-08 23:43:26 +00:00
Marcus Hüwe
2da0f1b737
- added docstring
2009-03-05 02:06:26 +00:00
Marcus Hüwe
141845c324
- added __iter__() method to iterate over an Ar object
2009-03-05 02:00:56 +00:00
Marcus Hüwe
abc9e24f61
license blabla...
2009-03-04 22:57:28 +00:00
Marcus Hüwe
3330cd012c
- added licensing information
2009-03-04 22:56:24 +00:00
Marcus Hüwe
3b08741a80
- added ar module: this can be used to read ar archives. This will be used later to extract files from a debian package which uses this format. Currently we only support the GNU format (note: maybe something is still missing but it's sufficient for our needs)
2009-03-04 22:15:11 +00:00
Dr. Peter Poeml
affef176a6
bump version to 0.114
2009-03-03 11:48:55 +00:00
Dr. Peter Poeml
be4f2b031f
Putting names at the top of files is is not recommended. Collective wisdom for
...
fostering open source contributions says that it can discourage contribution by
conveying a false sense of "code ownership". Marking territory is negatively
affecting collaboration. See http://www.youtube.com/watch?v=ZSFDm3UYkeE
2009-03-02 14:03:06 +00:00
Marcus Hüwe
9935faf3ba
- yet another fix for #477690 : build: use a cookie when fetching the binaries
2009-02-28 15:56:32 +00:00
7bd970716c
increase size of package field for jobhistory output.
...
(Product build packages are usually longer than 24 chars)
2009-02-25 08:39:29 +00:00
accc64ad41
fix backward compatibility for .oscrc file after Marcus changes
2009-02-25 08:02:22 +00:00
Marcus Hüwe
471f81b7f2
- enable cookies to speed up the auth process - I don't know why it was disabled at all but it was probably due to #378421 ("http cookie errors with osc") but this is already resolved
...
- this should fix #477690 ("osc fetching binaries really slow")
2009-02-25 01:29:58 +00:00
Marcus Hüwe
404ecd7444
- added aliases support for [apiurl] sections in the ~/.oscrc.
...
Example:
[http(s)://foobar]
...
aliases = foo, bar
=> "osc -A foo <cmd>" will do the same as "osc -A http(s)://foobar ls"
2009-02-24 21:35:59 +00:00
Marcus Hüwe
69f8c58873
- fixed #479156 ("osc: osc linkpac fails / backtrace")
2009-02-24 20:17:23 +00:00
Marcus Hüwe
0d25a44e54
- check if the apiurl has a protocol (this partly fixes #478516 )
2009-02-24 01:29:17 +00:00
Marcus Hüwe
caae2bc8a1
- cleaned up the conf module (I hope I didn't break anything):
...
* basically get rid of the scheme and apisrv mess - instead directly use the apiurl (== <protocol>://<host>) for everything
* some other minor cleanups here and there
* everyone who has a scheme or apisrv entry in his ~/.oscrc will get a deprecation warning but it's still working (at some point in the future we might remove these code paths)
* when writing a new ~/.oscrc store the apiurl in the conffile [fixes #478054 ]
- while being at it:
* fixed #478054 ("osc asks for build.o.o credential even if -A<somelocalapi> is always used")
* fixed #478052 ("osc backtrace on password entry (first startup)")
2009-02-23 23:29:32 +00:00
b43d67093b
fix error messages, kiwi files are also allowed as build description.
2009-02-23 14:59:10 +00:00
3cc1a12e60
add -l lastbuild option also to local results command
2009-02-23 12:25:56 +00:00
Dr. Peter Poeml
c8326f8de6
add code for creating an in-memory cpio archive, that I wrote a long time ago when we were planning to send RPM requires and provides of local binary packages to the backend for processing, along with spec files
2009-02-21 16:06:50 +00:00
7a9970473f
import a fix from mls for getting product builds working.
...
(Adapted to my changes from an hour ago)
2009-02-20 15:01:16 +00:00
7ced81880e
do really skip package verification when building within a VM
2009-02-20 14:03:19 +00:00
60f8d9543b
take care about server side configured vminstall packages
2009-02-20 13:45:00 +00:00
4369deaf10
* add support for VM (kvm or xen) builds
...
* update NEWS file
2009-02-20 12:49:17 +00:00
Dirk Mueller
be0add2e63
adrian told me about the package parameter :)
2009-02-20 11:56:13 +00:00
Dirk Mueller
c526f4ee9a
add osc jobhistory
2009-02-20 11:04:45 +00:00
c6f70d7506
remove hardcoded download server and use download server as reported by
...
the rep server.
This is fixing all non-opensuse.org build service instances.
2009-02-20 09:36:20 +00:00
Michal Marek
5a66ec6fe3
Add 11.1 to the osc project template, remove 10.2
2009-02-18 16:34:30 +00:00
Marcus Hüwe
ab8ff4b8c2
- avoid type errors
2009-02-18 10:22:06 +00:00
85d53187cf
add option to request former build status due to popular request.
...
(Requires an OBS > 1.5)
2009-02-18 09:53:38 +00:00
Marcus Hüwe
c3136c8bf5
- fixed #469167 (don't scare users if they want to commit a nonexistent file ;) )
...
- removed class UnreadableFile: I don't know why it was introduced at all but it doesn't make any sense => use IOError instead
2009-02-12 13:11:32 +00:00
Marcus Hüwe
0dc31b96b7
- fixed #470948 (osc build: be a bit more verbose if the linked package isn't expanded)
2009-02-11 12:53:05 +00:00
Marcus Hüwe
6dc5498015
- fixed osc branch --develproject (the API calls it 'ignoredevel' instead of 'nodevelproject')
2009-02-10 20:22:39 +00:00
Marcus Hüwe
2e4570ebab
- do_branch: added --revision option
2009-02-10 15:49:34 +00:00
7589a20da7
revert last change. We must not build for local, but for a real arch.
...
While kiwi runs architecture neutral in product mode, we do still need
dependency calculation for setting up the kiwi runtime enviroment.
2009-02-06 04:30:21 +00:00
cbdbb9516c
add local architecture to enable product building
2009-02-06 03:25:08 +00:00
Marcus Hüwe
7c93e55eb9
- fixed osc diff
2009-02-04 20:51:25 +00:00
Marcus Hüwe
4cef04fce4
getbinaries: doc fixes
2009-02-03 19:45:54 +00:00
Dr. Peter Poeml
73cbb26c8b
bump version (0.113)
2009-01-22 16:29:16 +00:00
Marcus Hüwe
d2f7dd1de1
- fixed #458083 (importsrcpkg: set the url in the package meta)
2009-01-21 21:55:53 +00:00
Dr. Peter Poeml
f0c19c23be
spelling fix, kindly reported by William Stephenson
2009-01-19 10:54:26 +00:00
Marcus Hüwe
d03dfd42a1
--typo
2009-01-16 14:45:27 +00:00
Marcus Hüwe
63864a5ff2
- renamed method 'pretty_diff' to 'server_diff': it can return an unified or a pretty diff (default: pretty diff)
...
- osc diff -rX:Y: the default is to return an unified diff (to get a pretty diff use the --pretty option)
- osc rdiff: the default is to return a pretty diff (to get an unified diff use the --unified option)
- osc sr show --diff: the default is to return a pretty diff (to get an unified diff use the --unified option)
2009-01-16 14:43:45 +00:00
Ludwig Nussel
edf555d9c3
osc getbinaries: optionally also download source rpms
2009-01-16 10:31:38 +00:00
Marcus Hüwe
cc99647933
- wipebinaries: added --expansion option
2009-01-10 22:55:25 +00:00
Marcus Hüwe
355b6935db
- osc diff: if 2 revisions are specified do a pretty_diff (TODO: BSSrcdiff.pm should generate unified diffs)
2009-01-09 17:09:29 +00:00
Marcus Hüwe
ee64ab6954
- added support for format strings like "%(project)s" and "%(package)s" which can be used in the build-root config option.
...
For example one could use a new chroot for each package.
2009-01-09 16:12:45 +00:00
Marcus Hüwe
80e3d33b2d
- fixed #462869 (osc updatepacmetafromspec fails if %description is starting with newline)
2009-01-09 11:04:51 +00:00
Marcus Hüwe
a6053debab
- catch OSError exceptions which might be raised by the subprocess module (note: the subprocess module doesn't set the filename attribute so we don't get much information)
2008-12-22 08:54:32 +00:00
Marcus Hüwe
ba3c4ac09d
don't use a hardcoded path for the rpm binary otherwise it fails on distributions like debian
2008-12-19 15:06:36 +00:00
Marcus Hüwe
8ae5597788
- fix #459292 - be more verbose if osc meta fails
2008-12-17 23:15:22 +00:00
Marcus Hüwe
ad11a87f92
- fix #459288 (mkpac: add info how to enable the package tracking feature)
2008-12-17 22:45:58 +00:00
Dr. Peter Poeml
3399b2e666
bump version & update NEWS
2008-12-12 10:23:18 +00:00
Dr. Peter Poeml
0a0cb27142
important bugfix for osc deletepac: prevent recursive deletion of a whole project, when a package name is given with a trailing slash
2008-12-12 10:02:41 +00:00
Marcus Hüwe
8092b317ed
- removed unused varialbe
2008-12-11 12:17:26 +00:00
Ludwig Nussel
e33b48f5b0
add support for more build options
...
--icecream
--ccache
--with
--without
2008-12-11 11:36:07 +00:00
Marcus Hüwe
eb96e53784
- small fix in debuginfo handling (accidentally used a string in a bool expression...)
2008-12-10 22:38:00 +00:00
Martin Mohring
61cc90b31b
- added: new armv7el arch for all binaries for up to ARMv7 EABI with VFP
2008-12-05 21:45:11 +00:00
Marcus Hüwe
c1b99b041f
- fixed importsrcpkg doc
...
- osc build: if --keep-pkgs is used also save the src.rpm
2008-11-29 13:32:25 +00:00
Marcus Hüwe
7172db474e
- osc build:
...
* some cleanups in the crossbuild part
* call the build script with the --arch parameter
2008-11-28 19:37:55 +00:00
Dr. Peter Poeml
656ff4a134
bump version; update NEWS
2008-11-28 18:45:34 +00:00
Marcus Hüwe
9d15f612cb
- this is escaping isn't needed. If we don't want to use interpolation we should call the appropriate methods with correct parameters. (luckily nobody except Peter noticed this issue because it resulted in a 0byte ~/.oscrc)
2008-11-28 16:53:07 +00:00
Martin Mohring
61740adee9
- added: missing last parts of Cross Development support
...
* although other targets do work, only activated arm and sh4 targets for Cross Build
* powerpc could also be used for Cross Build, but uses Native Build atm
* thes limited switching on of Cross Build is due to a new interface for workers that will handle workers with *super capabilites* in the future.
* then you can configure Cross Build at configure/runtime, not by changing the code
2008-11-22 16:38:40 +00:00
Dr. Peter Poeml
8383e9e895
osc build:
...
* rework buildinfo parser.
* handle new (or rather, future) attributes
named noinstall, package (we call it repopackage), repoarch.
* handle kiwi builds.
The urllist template (for constructing download URLs) was changed to
make the '_repository' part variable.
2008-11-22 10:55:33 +00:00
Marcus Hüwe
b6b4550ae7
osc ls: be able to list a single file (osc ls <project> <package> <file>) (requested by darix)
2008-11-20 12:56:16 +00:00
Dr. Peter Poeml
2bea1ad2df
fix osc's ignorance of the revision option (-r) for expanded links
...
https://bugzilla.novell.com/show_bug.cgi?id=429650
2008-11-19 12:13:18 +00:00
Martin Mohring
9db331184b
- added: support for ARMv5 EABI little endian arch
2008-11-17 01:03:49 +00:00
Dr. Peter Poeml
6e65c8d7cb
osc/fetch.py: execute processes avoiding the use of a shell
2008-11-14 22:32:39 +00:00
Marcus Hüwe
bfe54fd4e0
fixed detection of the build type (rpm or deb) - this was caused by the recent bs_repserver changes (r5566)
2008-11-12 23:51:43 +00:00
Marcus Hüwe
bb254bef2b
- build debuginfo packages if this is enabled in the project/package meta (this partly fixes #421390 )
2008-10-31 15:41:19 +00:00
Dr. Peter Poeml
88e8d5a3a8
update NEWS and bumb version (0.110)
2008-10-24 15:25:43 +00:00
Marcus Hüwe
09948be5da
fixed #436932 (call update_datastructs() after commit in order to avoid stale Package objects)
2008-10-24 14:42:24 +00:00
Marcus Hüwe
ccda32cca2
do_branch: allow slash notation for the project/package arguments (as requested by darix)
2008-10-16 12:34:41 +00:00
Marcus Hüwe
16d47f03b5
- fixed #431434 - we don't need a working copy anymore when building a local package
2008-10-14 10:38:22 +00:00
Marcus Hüwe
1e1ec418cc
- fix deprecation warnings on factory (python26)
2008-10-11 20:26:45 +00:00
Dr. Peter Poeml
df8ecce631
when checking out a project, and a linkerror occurs for one of the packages,
...
do a checkout in unexpanded form and continue checking out the rest of the
project [bnc#428303]
2008-10-02 15:46:52 +00:00
Marcus Hüwe
6a44bef9b5
deletepac: allow arguments like "<project>/<package>" (which are separated by a "/")
2008-10-01 15:01:32 +00:00
Dr. Peter Poeml
d6d5e441cf
bump version & update NEWS file
2008-09-30 15:07:44 +00:00
Dr. Peter Poeml
889ef86af5
- osc getbinaries: new command to download binaries directly from the api server
...
- core.get_binarylist(): add "verbose" switch that returns instances of class
File, instead of filenames
- improve core.get_binary_file():
* clean up tempfiles,
* set mtime,
* set file mask
Function signature is changed, because I'm not aware of any user than the example
script I once published on http://en.opensuse.org/Build_Service/osc_plugins
2008-09-30 14:54:08 +00:00
Marcus Hüwe
99732545b4
pass the --debug option to the build script which will take care of creating debuginfo packages
2008-09-24 13:13:33 +00:00
Dr. Peter Poeml
cd406dde98
add link to plugin API to osc help output
2008-09-24 12:23:56 +00:00
Dr. Peter Poeml
77a18bd1da
- Don't try to catch rpm-python errors if rpm-python isn't installed.
...
Thus we can avoid a hard dependency on having rpm-python.
2008-09-24 12:16:25 +00:00
Tom Patzig
cc0ce146e2
-added command 'rlog', to show commit logs of remote packages
2008-09-23 13:39:54 +00:00
Marcus Hüwe
6ddace8c97
- fixed #426612
...
- other fixes for python26
2008-09-21 14:44:20 +00:00
Dirk Mueller
c0ac2a9207
fix streaming of unfinished logfiles again
2008-09-19 22:25:06 +00:00
Marcus Hüwe
db7c4c4ad5
- fixed #427118
2008-09-18 15:04:42 +00:00
Dr. Peter Poeml
b18238e1a8
bump version to 0.108
2008-09-16 11:12:02 +00:00
Michal Marek
7f457a1d31
mmap the file readonly, it is safer and fixes uploading of readonly files in
...
osc ftp
2008-08-28 09:41:42 +00:00
Marcus Hüwe
a8181f7087
- fixed #419144
...
- fixed new_conf_template: commented out new 'http_headers' options
2008-08-21 18:17:40 +00:00
Michal Marek
b46c000b61
update_package_meta: correctly replace existing <url> element
2008-08-21 12:03:42 +00:00
Marcus Hüwe
854fe0d97a
- addFiles(): added optional prj_obj parameter
...
- do_addremove():
* if "do_package_tracking" is enabled scan the project dir for new/disappeared packages
* added --recursive option (If CWD is a project dir then scan all package dirs as well)
* minor pathname fix
- fixed argument handling in some methods: don't remove items from a list while looping over it
2008-08-20 19:24:55 +00:00
Susanne Oberhauser
572ed13aba
Actually use the new http_headers now available in the config.
2008-08-20 14:18:06 +00:00
Susanne Oberhauser
e1d9c67f1c
Parse http_headers in api host sections.
2008-08-20 14:07:11 +00:00
Susanne Oberhauser
6ded17ebf0
Factor api_host_options from get_apiurl_usr to access all host
...
specific options, not just the user.
2008-08-20 10:41:10 +00:00
Susanne Oberhauser
f7d2a690f5
- extend the 'auth_dict' to more generic per-host options 'api_host_options'
...
This allows in a next step to add per-host extra http-headers,
here for special authentication purposes.
2008-08-20 09:45:49 +00:00
Susanne Oberhauser
f07da13359
- only reparse the config if it was actually modified.
2008-08-20 09:40:00 +00:00
Marcus Hüwe
b2aceda67a
add new --project option to prjresults in order to show the results of a project without having a local wc (patch by Michael Wolf <maw@novell.com>)
2008-08-19 19:37:08 +00:00
Marcus Hüwe
1f2df92d12
submitrequest log: use the description of the submitrequest for the initial log entry otherwise its comment attribute would contain None
2008-08-19 19:15:29 +00:00
Marcus Hüwe
7dd72fd089
don't add an empty string ('') to the extra-pkgs list
2008-08-19 14:36:52 +00:00
Marcus Hüwe
e93678d5a0
- added submitrequest log command to show the history of a given id
2008-08-19 14:18:05 +00:00
Marcus Hüwe
bb11aea3fc
submitrequest show: show the current state's comment
2008-08-19 12:29:26 +00:00
Marcus Hüwe
06c5316ba2
changed text for the revoke message (as suggested by darix)
2008-08-17 21:14:59 +00:00
Marcus Hüwe
5140deebff
add the id of the new request to the revoke message
2008-08-17 20:12:19 +00:00
Marcus Hüwe
fc0d61bfce
- fixes for the last commit (r4684), actually only the change in core.py was intended.
...
now 'osc submitrequest create' checks if you already submitted requests for this package, if so it'll ask you if the previous submissions should be revoked
2008-08-17 19:10:44 +00:00
Marcus Hüwe
f4e4c91376
- minor fix in get_submit_request_list()
2008-08-17 18:53:54 +00:00
Lars Vogdt
5aaaa3572a
- enhanced the package template
2008-08-15 17:38:08 +00:00
Dr. Peter Poeml
f82ea05051
osc build: moved the architecture check more to the top. Now we first check
...
whether we can build for the target architecture, *before* we start downloading
packges.
2008-08-15 14:04:27 +00:00
Marcus Hüwe
d58fffc7b6
removed debugging and other superfluous stuff
2008-08-14 12:12:41 +00:00
Michal Marek
4df8ffd6ea
Make 'metafromspec' and alias to 'updatepacmetafromspec', to make the command
...
easier to memorize
2008-08-08 15:23:03 +00:00
Michal Marek
d047b30aa8
unbreak osc init
2008-08-08 15:19:54 +00:00
Dr. Peter Poeml
93e916eb39
remove empty parens after class definition so Python 2.4.2 can parse it
2008-08-07 17:51:28 +00:00
Marcus Hüwe
3359646b02
- fix bug #412918
...
- added a file attribute to the ConfigError() class
- added new ConfigMissingApiurl() class
2008-08-07 17:14:26 +00:00
Marcus Hüwe
8d055f7990
- added OscConfigParser module:
...
OscConfigParser() behaves like a normal ConfigParser() object. The
only differences is that it preserves the order+format of configuration entries
and that it stores comments.
In order to keep the order and the format it makes use of the ConfigLineOrder()
class.
- removed .netrc cruft from the conf module
- other config cleanups
2008-08-07 16:40:55 +00:00
Dirk Mueller
1a3c80423a
typo fix
2008-08-04 13:33:40 +00:00
Dirk Mueller
45e944efbf
- --state , means "any state"
...
- fix streaming support in osc buildlog. do not download all of the
buildlog into memory before printing it (it could be very big), just
print as the log comes in
2008-08-04 13:21:49 +00:00
Dirk Mueller
65e9011f00
- add support for listing submitrequests not in state New to
...
osc submitreq list
2008-08-04 13:20:29 +00:00
Marcus Hüwe
707b057891
- updatepacmetafromspec: also update the Url in the metadata (patch by Lenz Grimmer <lenz@grimmer.com>) (applied slightly modified version)
...
- read_meta_from_spec(): use the re module to find tags and sections to avoid problems with lowercase/uppercase letters (e.g. "Url" vs. "URL")
2008-08-03 19:36:07 +00:00
Marcus Hüwe
3c5847e054
- init: added support to initialize a project dir
2008-08-01 13:58:49 +00:00
Marcus Hüwe
ae07c9a945
do_package_tracking: be a bit more verbose when updating a project
2008-08-01 11:31:12 +00:00
Michal Marek
36fb38afd0
update the new project template with current distributions
2008-07-31 08:15:28 +00:00
Marcus Hüwe
0020074a8a
- fix enhancement request #412157 (Add some guessing to "osc build")
...
- "osc build" can be called with the following arguments:
* osc build [OPTS] PLATFORM ARCH BUILD_DESCR
* osc build [OPTS] PLATFORM (ARCH = hostarch, BUILD_DESCR is detected automatically)
* osc build [OPTS] ARCH (PLATFORM = build_platform (config option), BUILD_DESCR is detected automatically)
* osc build [OPTS] BUILD_DESCR (PLATFORM = build_platform (config option), ARCH = hostarch)
* osc build [OPTS] (PLATFORM = build_platform (config option), ARCH = hostarch, BUILD_DESCR is detected automatically)
2008-07-30 16:45:00 +00:00
Marcus Hüwe
5c062ea121
- fixed bug #412145 (typo)
2008-07-25 10:19:32 +00:00
Dirk Mueller
6792642166
- add "submitrequest" as an alias for "submitreq"
...
- add "submitrequest revoke" command to be able to
delete submissions to projects one can't write to
2008-07-25 09:34:29 +00:00
Dirk Mueller
494381866d
revert back to throwing the httplib2 error, to be
...
able to preserve http headers etc
2008-07-23 20:56:20 +00:00
Dirk Mueller
048414088f
- implement --no-checks for osc build
...
- make osc submitreq succeed for submitting new packages
(previously the develproject check caused it to abort prematurely)
2008-07-23 20:05:09 +00:00
Marcus Hüwe
12ff5ac124
- some cleanups/changes for the config handling:
...
* extra-pkgs and urllist settings can be separated by a comma and/or whitespace:
'extra-pkgs: foo, bar xyz'
* 'True', 'False' etc. are accepted values for boolean options
2008-07-18 12:08:03 +00:00
Dr. Peter Poeml
b37af9ed4f
add more information about aggregation of packages, and a link to the wiki page about it.
2008-07-17 17:46:21 +00:00
Dr. Peter Poeml
f43a22c502
version 0.107
2008-07-16 15:15:42 +00:00
Dr. Peter Poeml
6ff961279c
osc update / checkout: don't check out a working copy, or update an existing
...
one, when a source link cannot be applied [bnc#409373]
- linkinfo elements can have an "error" attribute which indicates link
application failure, which means that updating the working copy is not
possible.
- Before this fix, osc could silently remove locally modified sources!
2008-07-16 15:14:57 +00:00
Dr. Peter Poeml
2618902347
remove an os.getcwd() call from function arguments, because that call fails when running the program from a directory which doesn't exist anymore, and thus osc would not run at all.
2008-07-16 15:04:37 +00:00
Dr. Peter Poeml
cdab0b19ea
- osc build: make the --extra-pkgs option configurable via .oscrc.
...
Default is "extra-pkgs = vim gdb strace" -- and it can be overridden with -x ''
on the commandline, or set to empty in the config. [bnc#345142]
- make tilde expansion work on the packagecachedir setting
2008-07-12 12:06:23 +00:00
Dr. Peter Poeml
d3da0085a4
bump version (0.106); update NEWS file
2008-07-11 10:42:01 +00:00
Dr. Peter Poeml
c38fe33646
always expand sources for "pretty" diffs -- this affects 'osc rdiff' and 'osc
...
submitreq show'
2008-07-11 10:39:22 +00:00
Marcus Hüwe
572c58bc24
show author's name when listing submitrequests
2008-07-10 01:57:38 +00:00
Dr. Peter Poeml
83862c1040
submitreq: add shortcut 'sr' for Darix
2008-07-09 20:38:49 +00:00
Dr. Peter Poeml
e9fe10b11e
bump version (0.105)
2008-07-09 15:23:12 +00:00
Dr. Peter Poeml
de0bb98200
add submitreq delete action (thanks to Dirk for the patch)
2008-07-09 15:22:18 +00:00
Marcus Hüwe
acaef1d250
- disable signature check when getting data from a rpm file
...
- catch rpm.error exceptions
2008-07-08 15:51:37 +00:00
Marcus Hüwe
010c0ae7a0
fixed typo
2008-07-04 12:56:32 +00:00
Marcus Hüwe
5b84831d25
don't expand/unexpand if the working copy has local modifications - this is an ugly workaround for #399247 but this way the working copy isn't screwed up
2008-07-04 12:54:02 +00:00
Marcus Hüwe
c8b41c643a
- copy_pac: use the correct userid when copying to another apiurl
2008-06-30 14:07:11 +00:00
Marcus Hüwe
73fd228c14
- use apiurl from the storedir when running 'osc submitreq list/create'
2008-06-27 17:54:59 +00:00
Dirk Mueller
eb8a8bbc79
- support "submitreq list" also in a project
...
directory
2008-06-27 17:14:15 +00:00
Dirk Mueller
6d5dab90b4
list submitrequests in a sorted order.. newest first
2008-06-27 16:36:36 +00:00
Dirk Mueller
72d0d2fbbb
- add an optional parameter req_state to get_submitreq_list()
...
to be able to query also rejected submit requests
- make the list sortable
- make the list output more beautiful
2008-06-27 16:36:16 +00:00
Dirk Mueller
607ed31f97
- add news entry
...
- also list the http error code
2008-06-27 11:24:15 +00:00
Dirk Mueller
9eba706bd3
print the backend error code
2008-06-27 11:17:27 +00:00
Marcus Hüwe
5768e35047
- applied slightly modified version of Node's patch which added a --revision option to do_linkpac
2008-06-26 10:47:58 +00:00
Dirk Mueller
f16fb793e3
do not add _linkerror's to the project's working copy
2008-06-25 17:37:05 +00:00
Marcus Hüwe
927019a7eb
- added initial support for involved projects/packages (the xpath predicate is stolen from the webclient;) )
2008-06-24 15:07:44 +00:00
Dirk Mueller
3df4edb5bb
update usage info
2008-06-24 09:39:39 +00:00
Dirk Mueller
aa0a6976cb
guess the parameters of list if inside a working dir
2008-06-24 09:37:49 +00:00
Dirk Mueller
252e2a3e63
release is optional (doesn't exist on debian)
2008-06-23 08:38:05 +00:00
Dirk Mueller
1be2163733
double check the correctness of the build info for local build,
...
otherwise packages are stored incorrectly in the package cache
and that might cause problems later. Also refuse to build an
architecture locally that is not supported by the host architecture
2008-06-20 13:37:49 +00:00
Dirk Mueller
3fb7530028
add an API error type of class to throw
2008-06-20 13:36:45 +00:00
Marcus Hüwe
be934cc16d
- fix bug #400431
2008-06-18 14:34:30 +00:00
Dr. Peter Poeml
2bd196d8e3
- osc buildhist: change the output into a format which better matches actual RPM filenames.
...
- give commit message tempfiles a ".diff" suffix, so syntax highlighting might work in some editors
2008-06-17 06:12:48 +00:00
Dr. Peter Poeml
7ee4444b6b
show error messages from the API also for type 500 errors
2008-06-16 19:12:24 +00:00
Dr. Peter Poeml
dd9d1cb49f
osc build: handle exception when getting buildinfo fails, for cases != 404
2008-06-12 12:12:29 +00:00
Marcus Hüwe
7675c55242
fix and use comparePac()
2008-06-11 13:02:40 +00:00
Dr. Peter Poeml
7d8834a0a3
bump version to 0.104, adjust NEWS file
2008-06-11 08:34:39 +00:00
Dr. Peter Poeml
693987ac49
osc update: after update, reset the revision when updating multiple package.
...
Fixes "404: Not Found" type errors when updating an entire project. [bnc#399177]
2008-06-11 08:29:27 +00:00
Dr. Peter Poeml
61e4cf6798
babysitter: The api returns error messages meanwhile. Thus, we don't need to
...
look up the reason of errors anymore.
2008-06-11 08:17:55 +00:00
Dr. Peter Poeml
f4228de56b
osc wipebinaries: add missing check for commandline arguments, which could
...
cause a PACKAGE argument to be ignored
2008-06-11 08:01:10 +00:00
Marcus Hüwe
da101858ee
- fixed make_diff in order to avoid errors when committing a new package (created with mkpac)
2008-06-10 22:32:53 +00:00
Dr. Peter Poeml
bce87c182d
- handle error resulting from unexpected zero-length .osc/_files metadata
...
by raising oscerr.NoWorkingCopy()
2008-06-10 10:15:49 +00:00
Dr. Peter Poeml
06c2cbf882
bump version to 0.103, adjust NEWS file
2008-06-06 12:09:00 +00:00
Dr. Peter Poeml
86ad9766b2
- make submit request possible without giving commandline arguments, under some
...
circumstances -- when there is a working copy, and the package is a source
link, osc will figure out what's needed.
- don't stop submitrequests on packages that have a devel project defined, if
the submit comes from that project.
- osc checkout: checkout of source links is now done in expanded form per
default. --unexpand-link can be used to get the raw link file (and patches).
2008-06-06 12:04:34 +00:00
Dr. Peter Poeml
916346f8c6
Show the <summary> from the server reply's body also for 403 errors.
2008-06-06 10:55:17 +00:00
Dr. Peter Poeml
8362728a8e
bump version to 0.102
2008-06-03 15:12:49 +00:00
Dr. Peter Poeml
5438e4023a
osc submitreq: look up the develproject of the target, and if there is one,
...
don't create the request, unless forced with --nodevelproject.
2008-06-03 15:01:01 +00:00
Dr. Peter Poeml
7641ed0c8c
osc branch: add --nodevelproject
2008-06-03 13:16:55 +00:00
Dr. Peter Poeml
98090f8b09
make 'osc branch' show the actually created branch project name, not a guess one.
2008-06-03 12:43:52 +00:00
Dr. Peter Poeml
5000e4e148
A less confusing version of the last fix.
2008-06-03 12:33:29 +00:00
Dr. Peter Poeml
65e4d5bdd1
when -d (global, for debug) was used, save the body because it can't be read twice
2008-06-03 12:31:41 +00:00
Dr. Peter Poeml
f8daea6288
bump version (0.101) and update NEWS file
2008-05-27 11:03:21 +00:00
Dr. Peter Poeml
3f9b53ca6e
osc branch: use --expand-link in the example that shows how to check out the
...
branched package
2008-05-26 13:12:05 +00:00
Dr. Peter Poeml
bbe533087e
improve error handling, by printing the <summary> given by the API for HTTP status code 400 (bad request)
2008-05-21 16:38:50 +00:00
Dr. Peter Poeml
ac55bcaa5a
make help of osc init clearer
2008-05-21 16:10:20 +00:00
Dr. Peter Poeml
d8245f5f36
- add osc branch command, using the branch API call to branch a package to
...
home:poeml:branches:PRJ/PKG
2008-05-21 15:49:00 +00:00
Dr. Peter Poeml
7e524fd442
- osc commit: open $EDITOR for commit message
...
- osc status: implement -q/--quiet switch
- osc deletepac: allow deletion of multiple packages at once
- osc info: slightly more verbose
- core.edit_message() added
- core.getStatus() accepts new "quiet" argument
- oscerr.UserAbort added
2008-05-21 13:44:49 +00:00
Marcus Hüwe
3c5a25f1a5
- don't do any exception handling in the sync() method of the metafile() class. It's up to the caller what to do in case of an exception
...
- edit_meta(): raise an exception instead of printing an "useless" error message.
- make "osc meta prjconf <project> -e" work again (probably r3702 caused the problem)
2008-05-20 16:03:08 +00:00
Tom Patzig
4476afafd7
-cosmetic changes for rprjresults and rresults
...
-show Legend for prjresults only, if there are also packages to show
2008-05-20 11:36:16 +00:00
Marcus Hüwe
aba87c08dd
- added 'file_ext' key to the metatypes dict(). This key contains the filename extension for the particular metatype. This way we achieve that each metatype has the correct syntax highliting when running "osc meta -e <metatype>..." (e.g. prjconf => .txt, pkg => .xml etc.)
2008-05-20 09:23:57 +00:00
Dr. Peter Poeml
d80c47c0b9
- osc maintainer:
...
-D devel_project, --devel-project=devel_project
define the project where this package is primarily
developed
- core: add addDevelProject() method
2008-05-20 08:29:54 +00:00
Dr. Peter Poeml
fd0c04477b
- update version to 0.100
...
- decouple osc's version number from the versioning of the .osc storage
directory data format. The latter gets __store_version__ = 1.0 now.
2008-05-19 14:56:59 +00:00
Tom Patzig
abb97eb595
-new command rprjresults, to show remote project results
...
-new command rresults, to show remote package results
2008-05-16 12:25:50 +00:00
Tom Patzig
e69486bdc8
-in status-filter mode only show repos with the matching status
...
(in name-filter/or mixed mode all repos are shown)
2008-05-16 11:15:41 +00:00
Tom Patzig
abcb4f8489
- legend in prjresults is default enabled
...
- added status-filter and name-filter option to prjresults
2008-05-15 18:09:24 +00:00
Dr. Peter Poeml
db6dcbe8a9
treat build status 'finished' as 'building'
2008-05-15 15:44:57 +00:00
Marcus Hüwe
34e7822bbb
- added --baselibs option to osc build
2008-05-08 12:21:57 +00:00
Marcus Hüwe
3e0ba6285b
- don't exit when there's nothing to do for a package (instead simply return)
...
- there's no need to catch SystemExit's when creating a new package or committing something
2008-05-08 11:55:32 +00:00
Michal Marek
25ab4d7af6
fix KeyError exception when a status is missing in the result
2008-05-05 12:27:34 +00:00
Marcus Hüwe
f041ee43ba
- use absolute pathnames for preferred package dirs
2008-05-04 14:00:42 +00:00
Marcus Hüwe
602c146663
- return a real string instead of an tuple when invoking 'print' on the object
2008-05-03 18:25:24 +00:00
Pavol Rusnak
afec162189
- added --keep-maintainers switch to copypac
...
(do not remove original maintainers and replace them with caller)
2008-04-30 12:28:25 +00:00
Dr. Peter Poeml
3018460596
Merged revisions 3774-3775,3779,3781-3782,3787,3789-3793,3798,3802,3805,3817-3822,3827,3829-3830,3837-3839,3841-3842,3848-3850 via svnmerge from
...
https://forgesvn1.novell.com/svn/opensuse/branches/buildservice/osc-exception-handling
........
r3774 | poeml | 2008-04-22 17:39:45 +0200 (Tue, 22 Apr 2008) | 3 lines
A first draft on implement systematic exception handling:
Add errors.py with some exceptions defined, and babysitter.py to handle them
........
r3775 | poeml | 2008-04-22 22:34:12 +0200 (Tue, 22 Apr 2008) | 9 lines
- new global options:
--debugger jump into the debugger before executing anything
--post-mortem jump into the debugger in case of errors
-t, --traceback print call trace in case of errors
- traceback and post_mortem can also be set in .oscrc.
- catch more errors (HTTPError).
- make config accessible from outside of the Osc instance, by making it a class
attribute
........
r3779 | poeml | 2008-04-23 00:55:49 +0200 (Wed, 23 Apr 2008) | 5 lines
- new global option:
-d, --debug print info useful for debugging
- catch some more errors (HTTPError), with OscHTTPError which isn't very
advanced yet.
........
r3781 | Marcus_H | 2008-04-23 01:02:00 +0200 (Wed, 23 Apr 2008) | 2 lines
- added OscConfigError class (just for testing).
- small change in the signature of the OscBaseError constructor (actually we should get rid of the 'args' tuple because it will be deprecated sooner or later
........
r3782 | Marcus_H | 2008-04-23 02:02:13 +0200 (Wed, 23 Apr 2008) | 2 lines
- access the prg.conf.config dict in a save way - this way we avoid AttributeErrors if the prg.conf.config dict doesn't exist
- in case of an configparser error we have to use the prg.options object directly (this was removed in r3781 by accident)
........
r3787 | poeml | 2008-04-23 09:23:56 +0200 (Wed, 23 Apr 2008) | 4 lines
- remove local exception handling from do_req
- for HTTPError, print details (headers and response) when in debug mode
- catch AttributeError
........
r3789 | poeml | 2008-04-23 16:23:14 +0200 (Wed, 23 Apr 2008) | 4 lines
- errors: add two new classes named OscWrongOptionsError and OscWrongArgsError
- commandline: raise instances of the new errors in a number of places
- commandline: add get_cmd_help() to Osc instance which returns the formatted help of a subcommand
........
r3790 | Marcus_H | 2008-04-23 16:48:28 +0200 (Wed, 23 Apr 2008) | 4 lines
- added 2 new exception classes: OscNoConfigfileError and OscIOError
- added new method write_config() to the conf.py module: This method writes osc's configuration file
- minor cleanups in the conf module
........
r3791 | poeml | 2008-04-23 17:11:07 +0200 (Wed, 23 Apr 2008) | 3 lines
small compatibility fix for r3790: try-except-finally isn't supported in
python-2.4.2, thus do the same as try-except inside a try-finally.
........
r3792 | poeml | 2008-04-23 17:37:53 +0200 (Wed, 23 Apr 2008) | 2 lines
fix up the remaining places regarding handling of errors related to commandline parsing
........
r3793 | poeml | 2008-04-23 17:40:34 +0200 (Wed, 23 Apr 2008) | 3 lines
raise a NoWorkingCopyError in osc.core.store_read_project() in case of an
IOError
........
r3798 | Marcus_H | 2008-04-23 23:55:24 +0200 (Wed, 23 Apr 2008) | 1 line
ported -r3797 from trunk
........
r3802 | Marcus_H | 2008-04-24 11:00:55 +0200 (Thu, 24 Apr 2008) | 1 line
ported -r3801 from trunk
........
r3805 | poeml | 2008-04-24 12:52:30 +0200 (Thu, 24 Apr 2008) | 2 lines
raise OscHTTPError in show_pattern_meta(), replacing local error handling
........
r3817 | poeml | 2008-04-24 20:21:32 +0200 (Thu, 24 Apr 2008) | 9 lines
- remove errors.OscHTTPError again.
it seems simpler to use urllib2.HTTPError instead (and just add a specific
error text message where appropriate, and re-raise)
- for 404s, check out _which_ part was not found
it is very ugly, but may be considered Good for pragmatic reasons
- removed local exception handling and workaround for returned 500's from
delete_package() and delete_project(), thereby getting rid of 4 possible exit
points.
........
r3818 | Marcus_H | 2008-04-24 22:36:17 +0200 (Thu, 24 Apr 2008) | 1 line
- this check is superfluous because every HTTPError instance has a code attribute
........
r3819 | poeml | 2008-04-25 00:39:39 +0200 (Fri, 25 Apr 2008) | 1 line
remove a forgotten debug line from core.delete_project()
........
r3820 | poeml | 2008-04-25 10:07:58 +0200 (Fri, 25 Apr 2008) | 2 lines
- ditch local error handling from wipebinaries(), rebuild(), and abortbuild()
........
r3821 | poeml | 2008-04-25 10:56:38 +0200 (Fri, 25 Apr 2008) | 2 lines
It is never needed to import the exception module.
........
r3822 | poeml | 2008-04-25 11:13:39 +0200 (Fri, 25 Apr 2008) | 4 lines
- when going into the debugger with --post-mortem, always print a traceback before
(thus implying -t)
- do not jump into the debugger if not on a TTY, or working in interactive mode
........
r3827 | poeml | 2008-04-25 13:07:46 +0200 (Fri, 25 Apr 2008) | 9 lines
- add errors.OscWorkingCopyOutdated, which takes a tuple with three args:
path to working copy, current rev, expected rev
- add handler for urllib2.URLError errors to the babysitter
- simplify the OscWrongArgsError and OscWrongOptionsError handlers, by removing
the extra line "Sorry, wrong ..." that was printed before the messages given
when the error was raised.
- remove one more errors.OscHTTPError which was still there, and raise
urllib2.HTTPError instead (show_package_meta())
........
r3829 | poeml | 2008-04-25 14:19:10 +0200 (Fri, 25 Apr 2008) | 11 lines
- comment some methods in osc.core which are used by nearly all do_* methods in
osc.commandline
- improve "is not a package/project dir" error messages, by printing the
absolute path tried, instead of '.' for the cwd
- make core.store_read_package() raise a proper NoWorkingCopyError instead of
terminating
- give attribution to things in babysitter.py copied from mercurial
- prefix HTTPError exceptions with 'Server returned an error:'
- remove obsolete local error handling from do_prjresults(), do_importsrcpkg(),
do_repos()
........
r3830 | poeml | 2008-04-25 14:29:35 +0200 (Fri, 25 Apr 2008) | 1 line
catch IOError exceptions in the babysitter
........
r3837 | poeml | 2008-04-25 17:27:36 +0200 (Fri, 25 Apr 2008) | 5 lines
- do_remotebuildlog: raise errors for wrong arguments, remove exits
- raise AttributeError in make_meta_url() instead of exiting
- delete unused method core.delete_server_files()
- replace exit call inside make_meta_url() with an AttributeError
........
r3838 | poeml | 2008-04-25 17:49:18 +0200 (Fri, 25 Apr 2008) | 1 line
simplify the check in do_checkout if a project exists, by using show_project_meta() instead of meta_exists
........
r3839 | poeml | 2008-04-25 18:31:26 +0200 (Fri, 25 Apr 2008) | 6 lines
- commandline do_checkout(): change the order of the two checks, first do the
(cheaper) check for existing directory
- core.core checkout_package(): simplify the check in if the package
exists, by using show_package_meta() instead of meta_exists
Let it throw an exception, instead of using sys.exit().
........
r3841 | Marcus_H | 2008-04-27 15:48:06 +0200 (Sun, 27 Apr 2008) | 5 lines
- added 2 new exception classes: PackageError() and PackageExistsError. The PackageError() class is meant to be the base class for all subsequent package exceptions.
- get rid of 2 sys.exit(1) calls
- make the update() method of the Project() class safer: in any case we have to write the _packages file otherwise the package tracking will be screwed up.
- minor fix in delPackage(): use getTransActPath() when printing out the filename
........
r3842 | Marcus_H | 2008-04-27 16:52:55 +0200 (Sun, 27 Apr 2008) | 3 lines
- make the commit() method safe: in any case we have to write the _packages file otherwise the package tracking will be screwed up.
- removed another sys.exit(1): raise an exception if a package is missing when doing a commit. For now we use the PackageExistsError() exception but this might change in the future (updated description of PackageExistsError() according to this change)
........
r3848 | poeml | 2008-04-28 12:46:45 +0200 (Mon, 28 Apr 2008) | 3 lines
rename several error classes, dropping the "Osc" prefix, and "Error" suffix in
cases where they don't really make sense.
........
r3849 | poeml | 2008-04-28 12:57:32 +0200 (Mon, 28 Apr 2008) | 3 lines
- rename osc.errors module to osc.oscerr, to make it easier to import it from
other programs and have a crystal clear namespace
........
r3850 | poeml | 2008-04-28 13:26:12 +0200 (Mon, 28 Apr 2008) | 2 lines
split PackageExists exception class into PackageExists and PackageMissing
........
2008-04-28 16:37:44 +00:00
Dr. Peter Poeml
5d7df534ee
submitreq show: fix the --diff option; the diff was shown reversed. (bnc#379519)
2008-04-28 09:39:07 +00:00
Marcus Hüwe
2440bed285
- added --job option to the do_build() command. (this option will be passed to build script)
2008-04-24 09:00:23 +00:00
Marcus Hüwe
4c6ce9ae56
- added new method getStatus() which calculates the status of certain packages
...
- cleaned up do_status() and added support for multiple project dirs (osc st prj_dir1 /path/to/prj_dir2 ...)
2008-04-23 21:51:24 +00:00
Dr. Peter Poeml
40642ecaf4
save cookies even in case of urllib2.HTTPError exceptions [bnc#378421]
2008-04-23 07:07:45 +00:00
Marcus Hüwe
a4f4488a50
- fixed KeyError when printing the new_conf_template
2008-04-22 22:43:00 +00:00
Dr. Peter Poeml
34b5b109ac
remove osc.core.urlopen(), which is depracated since at least a year
2008-04-22 22:41:49 +00:00
Dr. Peter Poeml
5d6984ac64
remove code that was added in commit 3504 for debugging purposes, but never used.
...
(Bug https://bugzilla.novell.com/show_bug.cgi?id=369176 , empty responses from
api.opensuse.org.)
2008-04-22 22:35:48 +00:00
Marcus Hüwe
a13e822838
- use "rev=upload" when deleting otherwise this would result in a double commit (if "rev=upload" is not specified bs_srcserver does a "real" commit and additionally osc sends a request do a commit => 2 commits)
2008-04-21 15:07:34 +00:00
Michal Marek
c4f7b89062
warn only once for each unknown status in 'osc prjresults'
2008-04-18 11:37:19 +00:00
61e2a77eb1
fix api call to request log file file. This was the legacy call, which
...
seems not to work anymore.
2008-04-14 07:07:08 +00:00
6debf60892
temporary workaround for cookie handling problem by Andreas
2008-04-12 08:04:41 +00:00
Michal Marek
0835580d59
Abort if meta_exists encounters an unexpected error (bnc#377693).
...
The correct fix is to propagate this to commandline.py and exit() there.
2008-04-11 10:49:43 +00:00
Marcus Hüwe
e9176c7513
- fixed bug #378752 (osc fails to delete patterns)
2008-04-10 21:04:17 +00:00
Marcus Hüwe
80ab6bf345
- fixed bug #359846 :
...
the BUILD_DIST environment variable will be ignored by osc
- the following environment variables can still be used:
# OSC_SU_WRAPPER overrides the setting of su-wrapper.
# OSC_BUILD_ROOT overrides the setting of build-root.
# OSC_PACKAGECACHEDIR overrides the setting of packagecachedir.
(now they're documented in the helptext)
2008-04-09 18:45:59 +00:00
Dirk Mueller
5c064bc2c1
fix latent file descriptor leak in get_source_file()
2008-04-07 09:55:11 +00:00
Marcus Hüwe
d9ee2be26d
- ignore dot packages too
2008-04-03 10:46:18 +00:00
Marcus Hüwe
a3f948dede
- fixed bug #376285 :
...
* make_dir() and checkout_package() got a new optionally 'prj_dir' parameter. This parameter specifies in which dir we want to create new project/package dirs.
2008-04-02 15:30:44 +00:00
Dr. Peter Poeml
e62dd94cc0
copypac: make the server-side copy the default. But do a client-side copy if source and target are not on the same buildservice instance.
2008-04-02 14:36:23 +00:00
Dr. Peter Poeml
cc02e878b0
change some places where queries are passed to makeurl(). Use dictionaries for
...
that, which causes makeurl() to automatically do the quoting work.
2008-04-02 14:07:40 +00:00
Dr. Peter Poeml
6e5d41f481
- a slight simplification -- rev=upload is always okay.
2008-04-02 12:54:26 +00:00
Dr. Peter Poeml
5e5ca2e020
implement committing with keeping links
2008-04-02 12:37:56 +00:00
Dr. Peter Poeml
11fa192b33
- ignore all dot files (the buildservice doesn't handle them)
...
- fix Project class (used by the "package tracking" code path)
to use fnmatch.fnmatch() on the list of exclude expressions
2008-03-31 14:42:11 +00:00
Marcus Hüwe
a20e354d07
- small apiurl fixes
2008-03-27 00:36:17 +00:00
Dr. Peter Poeml
a0bae2ab52
osc update: fix diff3 merging for expanded links, by adding the revision to the
...
get_source_file() call in the mergfile method.
2008-03-26 16:11:11 +00:00
Dr. Peter Poeml
3db9e6449c
Link handling:
...
Add support for handling linked packages in expanded form. They can be checked
out, updated (expanding or unexpanding them), and built locally.
Missing: commit support.
Newly introduced options are:
- osc checkout: --expand-link
- osc update: --expand-link and --unexpand-link
Other changes:
- osc core: add show_upstream_xsrcmd5() method which returns the xsrcmd5 (if a
linkinfo element exists only, of course)
- made updating of expanded sources work with package tracking, too.
2008-03-24 20:24:49 +00:00
Dr. Peter Poeml
2fa94dcf23
core:
...
- add isexpanded() method to Linkinfo class
- add isexpandedlink() method to Package class
- read lsrcmd5 and srcmd5 from the linkinfo element, which are present in
expanded links.
osc info:
- make it show info about expanded and non-expanded links
2008-03-22 17:37:17 +00:00
Dr. Peter Poeml
f5af255798
core: relax the revision id check, so that source md5 sums are accepted
2008-03-22 16:35:22 +00:00
Dr. Peter Poeml
892e644f59
- add Linkinfo class to osc.core
...
- Package class:
- add linkinfo when reading in package data via update_datastructs()
- add islink() method
2008-03-22 13:37:59 +00:00
Dr. Peter Poeml
64f3d8c55e
submitreq show: if the target package doesn't exist, a diff cannot be produced.
2008-03-20 20:11:30 +00:00
Dr. Peter Poeml
c2c406aab2
submitreq: adjust to renamed API calls and XML ("merge" -> "submit")
2008-03-20 19:17:40 +00:00
Marcus Hüwe
303e5dcffc
- all necessary auth-information are available in the 'auth_dict' (so there's no need to fool around with the ConfigParser...)
2008-03-18 13:51:57 +00:00
Marcus Hüwe
3c3e961f4e
- minor fix in createPackageDir
...
- osc mkpac only works when 'do_package_tracking' is enabled
2008-03-17 23:43:32 +00:00
Marcus Hüwe
3fdf758dbb
- do_repos() should work in a project dir too
2008-03-17 23:24:28 +00:00
Dr. Peter Poeml
2493ea555a
- copypac: do a server-side copy (via a single api call) when
...
used with -s / --server-side.
This might be the default behaviour later.
An option to specify the source revision is missing yet.
2008-03-17 21:46:42 +00:00
Dr. Peter Poeml
8ce42e2dd9
change osc.core.pretty_diff() to call makeurl() with a query dict
2008-03-17 21:39:27 +00:00
Dr. Peter Poeml
140a331c40
Enhance osc.core.makeurl(). This function accepts a query parameter in form of
...
a list. The query can now also be given as a dictionary, and in that case it
will be automatically urlencoded. The behaviour for a list is unchanged for
the reason of backward compatibility.
2008-03-17 21:10:34 +00:00
Dr. Peter Poeml
54c1690309
osc req: add option -a / --add-header to add arbitrary request headers
2008-03-16 20:46:16 +00:00
Dr. Peter Poeml
7b91075229
handle mmap failure on filesystems like NTFS, which may not support
...
memory mapping when mounted under Linux
2008-03-16 19:02:38 +00:00
Marcus Hüwe
5d57d7e299
- added 3 new methods:
...
* createPackageDir(): create and initialize a new package dir in
the given project.
* get_apiurl_usr(): returns the username for a certain apiurl
* get_configParser(): returns an ConfigParser() object which can be
used for parsing the ~/.oscrc file
- fixed username issues when creating a new package (the problem was
that the username for the default host was used and not the one for
that specific apiurl)
- some small fixes in the do_importsrcpkg() method
2008-03-15 22:51:37 +00:00
Marcus Hüwe
c307449167
- we only need the "<entry />" nodes - otherwise listing files of a linked package fails
2008-03-13 21:45:24 +00:00
Dr. Peter Poeml
e8899aa165
if there are no credentials for the apisrv in use (which may be specified with
...
-A on the commandline), don't try to set up config['user'] with credentials.
2008-03-13 16:15:41 +00:00
Pavol Rusnak
734973a0bd
csv exported project results now use ';' as default
2008-03-13 11:13:22 +00:00
Dr. Peter Poeml
2bf92fce75
submitreq:
...
- when requesting a submit, save the source package's revision id (looking up
what it currently is)
- give the user a way to override it, to submit an older revision
- when using show --diff, take the actual old revision into account. Thus, the
diff is against the source revision of the time of request creation.
2008-03-12 23:37:35 +00:00
Dr. Peter Poeml
6ab8fb52c7
- remove remove obsolete, commented code (do_editpac(), do_editprj())
...
- fix a small tabbing issue
2008-03-12 18:26:41 +00:00
Dr. Peter Poeml
241f528dc4
implement a submitreq 'accept' action, resulting in the respective state change
2008-03-12 18:22:11 +00:00
Dr. Peter Poeml
8fc20cfc74
...which doesn't work. There are other requests where 0-replies are possible.
2008-03-11 17:09:25 +00:00
Dr. Peter Poeml
dad51ee405
add a temporary debug path to http_debug() for bug 369176 (empty responses from api.opensuse.org)
2008-03-11 16:39:47 +00:00
Dr. Peter Poeml
3f244d4b23
remove two stray lines which sneaked into osc/build.py with the last commit
2008-03-11 15:34:42 +00:00
Jürgen Weigert
0334ea4218
add --debuginfo switch to osc build
2008-03-11 15:18:02 +00:00
Dr. Peter Poeml
c0fabfc449
merged the package-tracking branch changes r2404:3491 into the trunk.
2008-03-10 18:04:23 +00:00
Michal Marek
3613893199
better fix: use %(mapping keys)s in templates
2008-03-07 09:13:30 +00:00
Michal Marek
ad2493d496
fixed last change (r3445)
2008-03-07 09:01:13 +00:00
3e30545e7b
define bugowner by default for new project/package (just part of the
...
template, can be removed by the user)
2008-03-07 08:24:48 +00:00
Dr. Peter Poeml
d87de082c2
submitreq:
...
- rename 'refuse' -> 'decline', which is more polite.
- show: make the diff optional
- add RequestState class
- handle state history
- implement 'decline' action
2008-03-06 10:25:45 +00:00
Dr. Peter Poeml
d63779a6a4
rename the new merge requests to submit requests
2008-03-05 23:51:48 +00:00
Dr. Peter Poeml
f52458fdc5
osc mergereq show: suppress requests which are deleted or declined
2008-03-05 21:41:30 +00:00
Susanne Oberhauser
b4df120e5b
- adjust osc init docstring to new realities (osc meta instead of osc
...
createpac)
2008-03-05 21:05:17 +00:00
Dr. Peter Poeml
488e14a0d8
typo accepd -> accept
2008-03-04 23:48:34 +00:00
Dr. Peter Poeml
aec7129a9b
- add a new subcommand 'mergereq' to handle merge requests. So far, it can
...
create, list, show requests.
- internally, add a MergeReq class, and do the needed (HTTP) requests.
2008-03-04 23:41:00 +00:00
Michal Marek
6c20c7203f
fix importsrcpkg when $projectdir/.osc/_apiurl is an alternative apiurl
2008-03-03 13:51:01 +00:00
Marcus Hüwe
016c80db86
- added optional apiurl parameter to the following methods:
...
meta_exists, make_meta_url, checkRevision
if no apiurl parameter is specified the global value (conf.config['apiurl'])
will be used. This should fix bug #361764
- some small apiurl fixes in the make_diff method (the package_tracking branch already has this fix)
2008-02-18 13:44:20 +00:00
Michal Marek
3dd6ef0f71
added option --csv to 'osc prjresults' to output a CSV table
2008-02-12 12:45:06 +00:00
Dr. Peter Poeml
8d52b94a6f
- osc build: if the build fails, print out the buildroot, so it it at hand for debugging
2008-01-24 18:18:03 +00:00
Dr. Peter Poeml
63e4d8da3c
- osc build: add --no-verify, to skip the package signature verification step
2008-01-24 18:06:45 +00:00
Marcus Hüwe
0e9e76ea68
- build: use the apiurl which is stored in the storedir (.osc/_apiurl)
...
when running osc build.
This should fix bug #355144
2008-01-23 19:37:44 +00:00
Dr. Peter Poeml
646be729e7
fix display of built rpms in build.py (when did that broke??)
...
thereby fixing osc build --keep-pkgs
2008-01-22 23:49:31 +00:00
Marcus Hüwe
f8b5963c7a
- check if a project exists before initializing the project dir
2008-01-18 10:35:57 +00:00
Marcus Hüwe
2e263514f8
- return a list instead of a tuple (this was already fixed in the packaging-branch)
2008-01-17 19:33:02 +00:00
Marcus Hüwe
a8788c2c4e
- added revision option to do_cat()
2008-01-15 18:58:58 +00:00
Marcus Hüwe
c6249087f9
fixed typo: borken -> broken
2008-01-11 16:44:08 +00:00
Marcus Hüwe
5306a78503
- added two new options to osc build:
...
* --local-package: use this option if you're trying to build a
package which doesn't exist on the server
* --alternative-project <project>: use this option to specify an
alternative project if the current project doesn't exist on the
server, e.g.: osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
- some other minor cleanups in build.py
- get_repos_of_project() is now a generator function
2008-01-07 14:54:31 +00:00
Marcus Hüwe
53e1640b1e
- added new command "remotebuildlog" to show the buildlog of a package
...
(you don't have to checkout the package to view the buildlog)
- renamed "get_log()" to "get_buildlog" to avoid any confusion with
"get_commitlog()"
- added new method "print_buildlog()" which prints out the buildlog on the
standard output
2008-01-03 22:10:16 +00:00
Marcus Hüwe
5242289d3d
- do_cat(): do not print a newline (strip the trailing '\n' from string)
2007-12-13 12:00:16 +00:00
Marcus Hüwe
dbfcb32435
- fixed bug #347377
...
- other minor fixes in make_diff()
2007-12-13 11:31:31 +00:00
Dr. Peter Poeml
6781119d43
- cat: simplify the code a bit; don't print header and footer lines
...
- unification of the help output of some commands
2007-12-10 14:23:58 +00:00
Dr. Peter Poeml
7826163ca2
bugfix in build: in order to verify package signatures, run the external rpm
...
command with en_EN locale, because the output is being parsed
2007-12-10 14:10:40 +00:00
Dr. Peter Poeml
aca6c6979e
cat: fix the test if the file is binary, which swallowed the first 4098 bytes
2007-11-30 10:28:00 +00:00
Dr. Peter Poeml
9aafba838f
improve wording in rdiff documentation
2007-11-29 17:32:52 +00:00
Dr. Peter Poeml
620bc2ea68
add rdiff subcommand, to allow server-side diffs between arbitrary packages
2007-11-29 17:22:57 +00:00
Marcus Hüwe
d4bfd42bb4
- copied init_project_dir() method from the osc-package-tracking branch (just removed the do_package_tracking stuff)
...
- checkout an empty project instead of doing nothing
2007-11-29 12:54:07 +00:00
Marcus Hüwe
7b9f85f97f
- reworked the diff functionality:
...
* some new things like showing newly added files
* moved the whole code into a new methode (make_diff())
* behave more like svn when doing a diff against a certain revision
- changed the storedir attribut of the Package() class to an absolute
filename - normally this shouldn't have any impact on existing methods, functionality etc.
2007-11-26 18:13:51 +00:00
Marcus Hüwe
5518e15673
- make sure that the package meta has a <person> element and remove
...
all <person> elements from the orginal package (this change affects
{link,aggregate,copy}_pac).
Patch from Michal Marek <mmarek@suse.cz> - thanks!
2007-11-09 18:03:19 +00:00
Marcus Hüwe
69e3fd1d4e
- added new "cat" command to print a file on the standard output
2007-11-02 18:18:30 +00:00
Dr. Peter Poeml
675901bc5d
- aggregatepac: new command, similar to linkpac. Patch from Pavol Rusnak.
...
- prjresults: for newly added packages, build status may be missing. Cope with that.
2007-10-30 13:45:54 +00:00
Dr. Peter Poeml
420b9cf25c
bump version to 0.99; update NEWS file
2007-10-30 11:47:06 +00:00
Marcus Hüwe
db692ce10e
- fixed bug #259711 (do not create dirs for non-existing packages during checkout)
2007-10-27 20:19:12 +00:00
Marcus Hüwe
42e128687d
- added --build-failed and --broken options to the do_wipebinaries()
...
method (this also fixes bug/enhancement #335498 )
2007-10-27 19:13:24 +00:00
Marcus Hüwe
d0b0b1bdb5
enabled deletion of packages as the backend now supports it.
2007-10-13 23:15:49 +00:00
Marcus Hüwe
69b7e3bfc7
added a bit more functionality to do_maintainers. It is possible to add and delete users from a project/package
2007-09-12 18:01:13 +00:00
Dr. Peter Poeml
bd9ae2fd05
print the list of URL to try, when in HTTP debug mode
2007-09-10 12:22:13 +00:00
Marcus Hüwe
40d2ce205e
- added verbose option to do_maintainers:
...
* it basically lists some more information about
each maintainer
- replaced get_user_email() with get_user_data()
2007-09-03 16:18:37 +00:00
Dr. Peter Poeml
9ce40d4bab
- build: allow to use lbuild, a compatible replacement for build
2007-09-03 14:52:45 +00:00
Dr. Peter Poeml
459651ed60
make osc call build with --changelog option, by default [ #298436 ]
2007-09-03 10:25:18 +00:00
Dr. Peter Poeml
27cee26d4a
new command 'maintainer'
2007-09-03 10:17:26 +00:00
Dr. Peter Poeml
1546410722
add get_user_email() function to osc/core
2007-09-03 10:17:04 +00:00
Dr. Peter Poeml
70524c88c7
fix typo in error message in do_importsrcpkg()
2007-08-27 18:02:53 +00:00
Dr. Peter Poeml
a3a2667742
- change conf.get_config() to take three optional override values:
...
get_config(override_conffile = None,
override_http_debug = None,
override_apisrv = None)
Thus, it should be possible to use the osc module with one simple
conf.get_config() call. It is no longer required to set up the api url in the
config dict, and call conf.init_basicauth().
2007-08-22 10:18:25 +00:00
Dr. Peter Poeml
106645a87b
allow to specify a different config file via the environmental variable OSC_CONFIG
2007-08-22 08:30:53 +00:00
Dr. Peter Poeml
0da80f0fd9
- core: add get_binary_file(), with contribution from James Oakley
...
- ls command: add -b option to list binaries
- req command: show error response also for 404 responses
2007-08-16 18:15:08 +00:00
Dr. Peter Poeml
409e46c3b0
- add get_binarylist_published()
...
- no need for StringIO'ifying the file object
- remove a comment
2007-08-16 17:12:46 +00:00
Dr. Peter Poeml
458eb4f514
add get_binarylist() function. Works per project and per package
2007-08-16 10:28:32 +00:00
Marcus Hüwe
02d77c4bda
fixed "osc build" if $BUILD_DIST is set
2007-08-15 19:28:08 +00:00
Dr. Peter Poeml
6c84b42333
bump version to 0.98
2007-08-14 11:49:43 +00:00
Dr. Peter Poeml
da6f6c4a8a
build: add --changelog option to force update of the package changelog from a changes file
2007-08-14 11:26:13 +00:00
Dr. Peter Poeml
cdf91d7f39
commit: use the documented commit method by default now
2007-08-14 10:30:39 +00:00
Dr. Peter Poeml
5cd1ace719
don't hardcode 'package' query parameter into show_results_meta()
2007-08-11 12:29:38 +00:00
Dr. Peter Poeml
6298267101
meta: remove notion of non-implemented --create switch. give example for meta pkg usage
2007-08-09 16:15:13 +00:00
Dr. Peter Poeml
929fe9b12c
search: add --repos-baseurl option
2007-08-09 11:35:08 +00:00
Marcus Hüwe
d75d98da50
fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue!
2007-08-08 19:48:38 +00:00
Marcus Hüwe
003c3dad5b
fixed two small typos
2007-08-08 15:44:14 +00:00