opensuse:osc.git
14 years agoinitial commit of fuseosc
Pavol Rusnak [Mon, 30 Jun 2008 14:20:06 +0000 (14:20 +0000)]
initial commit of fuseosc

14 years ago- copy_pac: use the correct userid when copying to another apiurl
Marcus Hüwe [Mon, 30 Jun 2008 14:07:11 +0000 (14:07 +0000)]
- copy_pac: use the correct userid when copying to another apiurl

14 years ago- use apiurl from the storedir when running 'osc submitreq list/create'
Marcus Hüwe [Fri, 27 Jun 2008 17:54:59 +0000 (17:54 +0000)]
- use apiurl from the storedir when running 'osc submitreq list/create'

14 years ago- support "submitreq list" also in a project
Dirk Mueller [Fri, 27 Jun 2008 17:14:15 +0000 (17:14 +0000)]
- support "submitreq list" also in a project
  directory

14 years agoadd news
Dirk Mueller [Fri, 27 Jun 2008 16:37:02 +0000 (16:37 +0000)]
add news

14 years agolist submitrequests in a sorted order.. newest first
Dirk Mueller [Fri, 27 Jun 2008 16:36:36 +0000 (16:36 +0000)]
list submitrequests in a sorted order.. newest first

14 years ago- add an optional parameter req_state to get_submitreq_list()
Dirk Mueller [Fri, 27 Jun 2008 16:36:16 +0000 (16:36 +0000)]
- 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

14 years ago- add news entry
Dirk Mueller [Fri, 27 Jun 2008 11:24:15 +0000 (11:24 +0000)]
- add news entry
- also list the http error code

14 years agoprint the backend error code
Dirk Mueller [Fri, 27 Jun 2008 11:17:27 +0000 (11:17 +0000)]
print the backend error code

14 years ago- applied slightly modified version of Node's patch which added a --revision option...
Marcus Hüwe [Thu, 26 Jun 2008 10:47:58 +0000 (10:47 +0000)]
- applied slightly modified version of Node's patch which added a --revision option to do_linkpac

14 years agodo not add _linkerror's to the project's working copy
Dirk Mueller [Wed, 25 Jun 2008 17:37:05 +0000 (17:37 +0000)]
do not add _linkerror's to the project's working copy

14 years ago- added initial support for involved projects/packages (the xpath predicate is stolen...
Marcus Hüwe [Tue, 24 Jun 2008 15:07:44 +0000 (15:07 +0000)]
- added initial support for involved projects/packages (the xpath predicate is stolen from the webclient;) )

14 years agolist news
Dirk Mueller [Tue, 24 Jun 2008 09:41:30 +0000 (09:41 +0000)]
list news

14 years agoupdate usage info
Dirk Mueller [Tue, 24 Jun 2008 09:39:39 +0000 (09:39 +0000)]
update usage info

14 years agoguess the parameters of list if inside a working dir
Dirk Mueller [Tue, 24 Jun 2008 09:37:49 +0000 (09:37 +0000)]
guess the parameters of list if inside a working dir

14 years agorelease is optional (doesn't exist on debian)
Dirk Mueller [Mon, 23 Jun 2008 08:38:05 +0000 (08:38 +0000)]
release is optional (doesn't exist on debian)

14 years agodouble check the correctness of the build info for local build,
Dirk Mueller [Fri, 20 Jun 2008 13:37:49 +0000 (13:37 +0000)]
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

14 years agoadd an API error type of class to throw
Dirk Mueller [Fri, 20 Jun 2008 13:36:45 +0000 (13:36 +0000)]
add an API error type of class to throw

14 years ago- fix bug #400431
Marcus Hüwe [Wed, 18 Jun 2008 14:34:30 +0000 (14:34 +0000)]
- fix bug #400431

14 years ago- osc buildhist: change the output into a format which better matches actual RPM...
Dr. Peter Poeml [Tue, 17 Jun 2008 06:12:48 +0000 (06:12 +0000)]
- 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

14 years agoshow error messages from the API also for type 500 errors
Dr. Peter Poeml [Mon, 16 Jun 2008 19:12:24 +0000 (19:12 +0000)]
show error messages from the API also for type 500 errors

14 years agoosc build: handle exception when getting buildinfo fails, for cases != 404
Dr. Peter Poeml [Thu, 12 Jun 2008 12:12:29 +0000 (12:12 +0000)]
osc build: handle exception when getting buildinfo fails, for cases != 404

14 years agofix and use comparePac()
Marcus Hüwe [Wed, 11 Jun 2008 13:02:40 +0000 (13:02 +0000)]
fix and use comparePac()

14 years agobump version to 0.104, adjust NEWS file
Dr. Peter Poeml [Wed, 11 Jun 2008 08:34:39 +0000 (08:34 +0000)]
bump version to 0.104, adjust NEWS file

14 years agoosc update: after update, reset the revision when updating multiple package.
Dr. Peter Poeml [Wed, 11 Jun 2008 08:29:27 +0000 (08:29 +0000)]
osc update: after update, reset the revision when updating multiple package.
Fixes "404: Not Found" type errors when updating an entire project. [bnc#399177]

14 years agobabysitter: The api returns error messages meanwhile. Thus, we don't need to
Dr. Peter Poeml [Wed, 11 Jun 2008 08:17:55 +0000 (08:17 +0000)]
babysitter: The api returns error messages meanwhile. Thus, we don't need to
look up the reason of errors anymore.

14 years agoosc wipebinaries: add missing check for commandline arguments, which could
Dr. Peter Poeml [Wed, 11 Jun 2008 08:01:10 +0000 (08:01 +0000)]
osc wipebinaries: add missing check for commandline arguments, which could
cause a PACKAGE argument to be ignored

14 years ago- fixed make_diff in order to avoid errors when committing a new package (created...
Marcus Hüwe [Tue, 10 Jun 2008 22:32:53 +0000 (22:32 +0000)]
- fixed make_diff in order to avoid errors when committing a new package (created with mkpac)

14 years ago- handle error resulting from unexpected zero-length .osc/_files metadata
Dr. Peter Poeml [Tue, 10 Jun 2008 10:15:49 +0000 (10:15 +0000)]
- handle error resulting from unexpected zero-length .osc/_files metadata
  by raising oscerr.NoWorkingCopy()

14 years agobump version to 0.103, adjust NEWS file
Dr. Peter Poeml [Fri, 6 Jun 2008 12:09:00 +0000 (12:09 +0000)]
bump version to 0.103, adjust NEWS file

14 years ago- make submit request possible without giving commandline arguments, under some
Dr. Peter Poeml [Fri, 6 Jun 2008 12:04:34 +0000 (12:04 +0000)]
- 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).

14 years agoShow the <summary> from the server reply's body also for 403 errors.
Dr. Peter Poeml [Fri, 6 Jun 2008 10:55:17 +0000 (10:55 +0000)]
Show the <summary> from the server reply's body also for 403 errors.

14 years agoupdate NEWS
Dr. Peter Poeml [Tue, 3 Jun 2008 15:16:10 +0000 (15:16 +0000)]
update NEWS

14 years agobump version to 0.102
Dr. Peter Poeml [Tue, 3 Jun 2008 15:12:49 +0000 (15:12 +0000)]
bump version to 0.102

14 years agoosc submitreq: look up the develproject of the target, and if there is one,
Dr. Peter Poeml [Tue, 3 Jun 2008 15:01:01 +0000 (15:01 +0000)]
osc submitreq: look up the develproject of the target, and if there is one,
don't create the request, unless forced with --nodevelproject.

14 years agoosc branch: add --nodevelproject
Dr. Peter Poeml [Tue, 3 Jun 2008 13:16:55 +0000 (13:16 +0000)]
osc branch: add --nodevelproject

14 years agomake 'osc branch' show the actually created branch project name, not a guess one.
Dr. Peter Poeml [Tue, 3 Jun 2008 12:43:52 +0000 (12:43 +0000)]
make 'osc branch' show the actually created branch project name, not a guess one.

14 years agoA less confusing version of the last fix.
Dr. Peter Poeml [Tue, 3 Jun 2008 12:33:29 +0000 (12:33 +0000)]
A less confusing version of the last fix.

14 years agowhen -d (global, for debug) was used, save the body because it can't be read twice
Dr. Peter Poeml [Tue, 3 Jun 2008 12:31:41 +0000 (12:31 +0000)]
when -d (global, for debug) was used, save the body because it can't be read twice

14 years agobump version (0.101) and update NEWS file
Dr. Peter Poeml [Tue, 27 May 2008 11:03:21 +0000 (11:03 +0000)]
bump version (0.101) and update NEWS file

14 years agoosc branch: use --expand-link in the example that shows how to check out the
Dr. Peter Poeml [Mon, 26 May 2008 13:12:05 +0000 (13:12 +0000)]
osc branch: use --expand-link in the example that shows how to check out the
branched package

14 years agoimprove error handling, by printing the <summary> given by the API for HTTP status...
Dr. Peter Poeml [Wed, 21 May 2008 16:38:50 +0000 (16:38 +0000)]
improve error handling, by printing the <summary> given by the API for HTTP status code 400 (bad request)

14 years agomake help of osc init clearer
Dr. Peter Poeml [Wed, 21 May 2008 16:10:20 +0000 (16:10 +0000)]
make help of osc init clearer

14 years ago- add osc branch command, using the branch API call to branch a package to
Dr. Peter Poeml [Wed, 21 May 2008 15:49:00 +0000 (15:49 +0000)]
- add osc branch command, using the branch API call to branch a package to
  home:poeml:branches:PRJ/PKG

14 years ago- osc commit: open $EDITOR for commit message
Dr. Peter Poeml [Wed, 21 May 2008 13:44:49 +0000 (13:44 +0000)]
- 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

14 years ago- don't do any exception handling in the sync() method of the metafile() class. It...
Marcus Hüwe [Tue, 20 May 2008 16:03:08 +0000 (16:03 +0000)]
- 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)

14 years agoadd NEWS entry for osc maintainer -D
Dr. Peter Poeml [Tue, 20 May 2008 12:32:20 +0000 (12:32 +0000)]
add NEWS entry for osc maintainer -D

14 years ago-cosmetic changes for rprjresults and rresults
Tom Patzig [Tue, 20 May 2008 11:36:16 +0000 (11:36 +0000)]
-cosmetic changes for rprjresults and rresults
-show Legend for prjresults only, if there are also packages to show

14 years ago- added 'file_ext' key to the metatypes dict(). This key contains the filename extens...
Marcus Hüwe [Tue, 20 May 2008 09:23:57 +0000 (09:23 +0000)]
- 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.)

14 years ago- osc maintainer:
Dr. Peter Poeml [Tue, 20 May 2008 08:29:54 +0000 (08:29 +0000)]
- osc maintainer:
    -D devel_project, --devel-project=devel_project
                        define the project where this package is primarily
                        developed
- core: add addDevelProject() method

14 years agoclean up NEWS and TODO in preperation of 0.100 release
Dr. Peter Poeml [Mon, 19 May 2008 15:15:18 +0000 (15:15 +0000)]
clean up NEWS and TODO in preperation of 0.100 release

14 years ago- update version to 0.100
Dr. Peter Poeml [Mon, 19 May 2008 14:56:59 +0000 (14:56 +0000)]
- 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.

14 years ago-new command rprjresults, to show remote project results
Tom Patzig [Fri, 16 May 2008 12:25:50 +0000 (12:25 +0000)]
-new command rprjresults, to show remote project results
-new command rresults, to show remote package results

14 years ago-in status-filter mode only show repos with the matching status
Tom Patzig [Fri, 16 May 2008 11:15:41 +0000 (11:15 +0000)]
-in status-filter mode only show repos with the matching status
(in name-filter/or mixed  mode all repos are shown)

14 years ago- legend in prjresults is default enabled
Tom Patzig [Thu, 15 May 2008 18:09:24 +0000 (18:09 +0000)]
- legend in prjresults is default enabled
- added status-filter and name-filter option to prjresults

14 years agotreat build status 'finished' as 'building'
Dr. Peter Poeml [Thu, 15 May 2008 15:44:57 +0000 (15:44 +0000)]
treat build status 'finished' as 'building'

14 years ago- added --baselibs option to osc build
Marcus Hüwe [Thu, 8 May 2008 12:21:57 +0000 (12:21 +0000)]
- added --baselibs option to osc build

14 years ago- don't exit when there's nothing to do for a package (instead simply return)
Marcus Hüwe [Thu, 8 May 2008 11:55:32 +0000 (11:55 +0000)]
- 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

14 years agofix KeyError exception when a status is missing in the result
Michal Marek [Mon, 5 May 2008 12:27:34 +0000 (12:27 +0000)]
fix KeyError exception when a status is missing in the result

14 years ago- use absolute pathnames for preferred package dirs
Marcus Hüwe [Sun, 4 May 2008 14:00:42 +0000 (14:00 +0000)]
- use absolute pathnames for preferred package dirs

14 years ago- return a real string instead of an tuple when invoking 'print' on the object
Marcus Hüwe [Sat, 3 May 2008 18:25:24 +0000 (18:25 +0000)]
- return a real string instead of an tuple when invoking 'print' on the object

14 years ago- added --keep-maintainers switch to copypac
Pavol Rusnak [Wed, 30 Apr 2008 12:28:25 +0000 (12:28 +0000)]
- added --keep-maintainers switch to copypac
  (do not remove original maintainers and replace them with caller)

14 years agoRemoved merge tracking for "svnmerge" for
Dr. Peter Poeml [Mon, 28 Apr 2008 17:09:25 +0000 (17:09 +0000)]
Removed merge tracking for "svnmerge" for
https://forgesvn1.novell.com/svn/opensuse/branches/buildservice/osc-exception-handling

14 years agoMerged revisions 3774-3775,3779,3781-3782,3787,3789-3793,3798,3802,3805,3817-3822...
Dr. Peter Poeml [Mon, 28 Apr 2008 16:37:44 +0000 (16:37 +0000)]
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
........

14 years agochange some places where queries are passed to makeurl(). Use dictionaries for
Dr. Peter Poeml [Mon, 28 Apr 2008 15:48:40 +0000 (15:48 +0000)]
change some places where queries are passed to makeurl(). Use dictionaries for
that, which causes makeurl() to automatically do the quoting work.

14 years agosubmitreq show: fix the --diff option; the diff was shown reversed. (bnc#379519)
Dr. Peter Poeml [Mon, 28 Apr 2008 09:39:07 +0000 (09:39 +0000)]
submitreq show: fix the --diff option; the diff was shown reversed. (bnc#379519)

14 years ago- added --job option to the do_build() command. (this option will be passed to build...
Marcus Hüwe [Thu, 24 Apr 2008 09:00:23 +0000 (09:00 +0000)]
- added --job option to the do_build() command. (this option will be passed to build script)

14 years ago- added new method getStatus() which calculates the status of certain packages
Marcus Hüwe [Wed, 23 Apr 2008 21:51:24 +0000 (21:51 +0000)]
- 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 ...)

14 years agosave cookies even in case of urllib2.HTTPError exceptions [bnc#378421]
Dr. Peter Poeml [Wed, 23 Apr 2008 07:07:45 +0000 (07:07 +0000)]
save cookies even in case of urllib2.HTTPError exceptions [bnc#378421]

14 years ago- fixed KeyError when printing the new_conf_template
Marcus Hüwe [Tue, 22 Apr 2008 22:43:00 +0000 (22:43 +0000)]
- fixed KeyError when printing the new_conf_template

14 years agoremove osc.core.urlopen(), which is depracated since at least a year
Dr. Peter Poeml [Tue, 22 Apr 2008 22:41:49 +0000 (22:41 +0000)]
remove osc.core.urlopen(), which is depracated since at least a year

14 years agoremove code that was added in commit 3504 for debugging purposes, but never used.
Dr. Peter Poeml [Tue, 22 Apr 2008 22:35:48 +0000 (22:35 +0000)]
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.)

14 years ago- use "rev=upload" when deleting otherwise this would result in a double commit ...
Marcus Hüwe [Mon, 21 Apr 2008 15:07:34 +0000 (15:07 +0000)]
- 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)

14 years agowarn only once for each unknown status in 'osc prjresults'
Michal Marek [Fri, 18 Apr 2008 11:37:19 +0000 (11:37 +0000)]
warn only once for each unknown status in 'osc prjresults'

14 years agofix api call to request log file file. This was the legacy call, which
Adrian Schröter [Mon, 14 Apr 2008 07:07:08 +0000 (07:07 +0000)]
fix api call to request log file file. This was the legacy call, which
seems not to work anymore.

14 years agotemporary workaround for cookie handling problem by Andreas
Adrian Schröter [Sat, 12 Apr 2008 08:04:41 +0000 (08:04 +0000)]
temporary workaround for cookie handling problem by Andreas

14 years agoAbort if meta_exists encounters an unexpected error (bnc#377693).
Michal Marek [Fri, 11 Apr 2008 10:49:43 +0000 (10:49 +0000)]
Abort if meta_exists encounters an unexpected error (bnc#377693).
The correct fix is to propagate this to commandline.py and exit() there.

14 years ago- fixed bug #378752 (osc fails to delete patterns)
Marcus Hüwe [Thu, 10 Apr 2008 21:04:17 +0000 (21:04 +0000)]
- fixed bug #378752 (osc fails to delete patterns)

14 years ago- fixed bug #359846:
Marcus Hüwe [Wed, 9 Apr 2008 18:45:59 +0000 (18:45 +0000)]
- 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)

14 years agofix latent file descriptor leak in get_source_file()
Dirk Mueller [Mon, 7 Apr 2008 09:55:11 +0000 (09:55 +0000)]
fix latent file descriptor leak in get_source_file()

14 years ago- ignore dot packages too
Marcus Hüwe [Thu, 3 Apr 2008 10:46:18 +0000 (10:46 +0000)]
- ignore dot packages too

14 years ago- fixed bug #376285:
Marcus Hüwe [Wed, 2 Apr 2008 15:30:44 +0000 (15:30 +0000)]
- 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.

14 years agoclean up TODO and update NEWS file
Dr. Peter Poeml [Wed, 2 Apr 2008 14:38:35 +0000 (14:38 +0000)]
clean up TODO and update NEWS file

14 years agocopypac: make the server-side copy the default. But do a client-side copy if source...
Dr. Peter Poeml [Wed, 2 Apr 2008 14:36:23 +0000 (14:36 +0000)]
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.

14 years agofix testsuite for changed osc info output
Dr. Peter Poeml [Wed, 2 Apr 2008 14:08:23 +0000 (14:08 +0000)]
fix testsuite for changed osc info output

14 years agochange some places where queries are passed to makeurl(). Use dictionaries for
Dr. Peter Poeml [Wed, 2 Apr 2008 14:07:40 +0000 (14:07 +0000)]
change some places where queries are passed to makeurl(). Use dictionaries for
that, which causes makeurl() to automatically do the quoting work.

14 years ago- a slight simplification -- rev=upload is always okay.
Dr. Peter Poeml [Wed, 2 Apr 2008 12:54:26 +0000 (12:54 +0000)]
- a slight simplification -- rev=upload is always okay.

14 years agoimplement committing with keeping links
Dr. Peter Poeml [Wed, 2 Apr 2008 12:37:56 +0000 (12:37 +0000)]
implement committing with keeping links

14 years ago- ignore all dot files (the buildservice doesn't handle them)
Dr. Peter Poeml [Mon, 31 Mar 2008 14:42:11 +0000 (14:42 +0000)]
- 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

14 years ago- small apiurl fixes
Marcus Hüwe [Thu, 27 Mar 2008 00:36:17 +0000 (00:36 +0000)]
- small apiurl fixes

14 years agotypo.
Jürgen Weigert [Wed, 26 Mar 2008 19:24:05 +0000 (19:24 +0000)]
typo.

14 years agoAn external tool to help working with _link files.
Jürgen Weigert [Wed, 26 Mar 2008 17:56:52 +0000 (17:56 +0000)]
An external tool to help working with _link files.

It can expand the _link, so that osc build is usable.

It can also fetch a linked *.spec file, so that
_linkerror can be resolved.

WARNING: still written in perl. :-)

14 years agoosc update: fix diff3 merging for expanded links, by adding the revision to the
Dr. Peter Poeml [Wed, 26 Mar 2008 16:11:11 +0000 (16:11 +0000)]
osc update: fix diff3 merging for expanded links, by adding the revision to the
get_source_file() call in the mergfile method.

14 years agofix testsuite for changed osc info output
Dr. Peter Poeml [Wed, 26 Mar 2008 15:22:53 +0000 (15:22 +0000)]
fix testsuite for changed osc info output

14 years agoLink handling:
Dr. Peter Poeml [Mon, 24 Mar 2008 20:24:49 +0000 (20:24 +0000)]
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.

14 years agocore:
Dr. Peter Poeml [Sat, 22 Mar 2008 17:37:17 +0000 (17:37 +0000)]
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

14 years agocore: relax the revision id check, so that source md5 sums are accepted
Dr. Peter Poeml [Sat, 22 Mar 2008 16:35:22 +0000 (16:35 +0000)]
core: relax the revision id check, so that source md5 sums are accepted

14 years ago- add Linkinfo class to osc.core
Dr. Peter Poeml [Sat, 22 Mar 2008 13:37:59 +0000 (13:37 +0000)]
- add Linkinfo class to osc.core
- Package class:
  - add linkinfo when reading in package data via update_datastructs()
  - add islink() method

14 years agosubmitreq show: if the target package doesn't exist, a diff cannot be produced.
Dr. Peter Poeml [Thu, 20 Mar 2008 20:11:30 +0000 (20:11 +0000)]
submitreq show: if the target package doesn't exist, a diff cannot be produced.

14 years agosubmitreq: adjust to renamed API calls and XML ("merge" -> "submit")
Dr. Peter Poeml [Thu, 20 Mar 2008 19:17:40 +0000 (19:17 +0000)]
submitreq: adjust to renamed API calls and XML ("merge" -> "submit")