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

710 Commits

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