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

273 Commits

Author SHA1 Message Date
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
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
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
68f5d72061 - fix for #492369 ("no warning on failed osc expansion") 2009-04-06 20:08:14 +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
e5ff09152d - be a bit more verbose and tell the user about the package tracking feature 2009-03-16 21:29:42 +00:00
Marcus Hüwe
ce8027fc14 - partly fix #478516: copypac: added --keep-develproject option 2009-03-11 15:23:23 +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
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
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
Dirk Mueller
c526f4ee9a add osc jobhistory 2009-02-20 11:04:45 +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
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
2e4570ebab - do_branch: added --revision option 2009-02-10 15:49:34 +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
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
ad11a87f92 - fix #459288 (mkpac: add info how to enable the package tracking feature) 2008-12-17 22:45:58 +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
Ludwig Nussel
e33b48f5b0 add support for more build options
--icecream
--ccache
--with
--without
2008-12-11 11:36:07 +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
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
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
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
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
Dr. Peter Poeml
cd406dde98 add link to plugin API to osc help output 2008-09-24 12:23:56 +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
a8181f7087 - fixed #419144
- fixed new_conf_template: commented out new 'http_headers' options
2008-08-21 18:17:40 +00:00