Hello community,

here is the log from the commit of package osc for openSUSE:Factory
checked in at Wed Jun 8 17:33:32 CEST 2011.



--------
--- osc/osc.changes     2011-06-07 16:45:33.000000000 +0200
+++ /mounts/work_src_done/STABLE/osc/osc.changes        2011-06-08 
13:36:48.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Jun  8 11:35:25 UTC 2011 - [email protected]
+
+- update to 0.132.1
+  - fix backward compatibility with OBS 2.1 and before
+  - meta files and content can be listed now
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  osc-0.132.0.tar.gz

New:
----
  osc-0.132.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ osc.spec ++++++
--- /var/tmp/diff_new_pack.za7QDH/_old  2011-06-08 17:33:17.000000000 +0200
+++ /var/tmp/diff_new_pack.za7QDH/_new  2011-06-08 17:33:17.000000000 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           osc
-Version:        0.132.0
+Version:        0.132.1
 Release:        1
 Group:          Development/Tools/Other
 License:        GPLv2+

++++++ osc-0.132.0.tar.gz -> osc-0.132.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.132.0/NEWS new/osc-0.132.1/NEWS
--- old/osc-0.132.0/NEWS        2011-06-07 16:42:28.000000000 +0200
+++ new/osc-0.132.1/NEWS        2011-06-08 13:33:23.000000000 +0200
@@ -1,3 +1,8 @@
+
+0.132.1
+  - backward compatibility fix for OBS 2.1 and before
+  - add --meta option also to "list", "cat" and "less" commands
+
 0.132
   - rdelete and undelete command requesting now a comment
   - add 'requestbugownership' command for setting the bugowner via request
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.132.0/osc/commandline.py 
new/osc-0.132.1/osc/commandline.py
--- old/osc-0.132.0/osc/commandline.py  2011-06-07 16:42:28.000000000 +0200
+++ new/osc-0.132.1/osc/commandline.py  2011-06-08 13:33:20.000000000 +0200
@@ -218,8 +218,6 @@
                         help='specify repository (only for binaries)')
     @cmdln.option('-b', '--binaries', action='store_true',
                         help='list built binaries instead of sources')
-    @cmdln.option('-R', '--revision', metavar='REVISION',
-                        help='specify revision (only for sources)')
     @cmdln.option('-e', '--expand', action='store_true',
                         help='expand linked package (only for sources)')
     @cmdln.option('-u', '--unexpand', action='store_true',
@@ -230,6 +228,10 @@
                         help='print extra information')
     @cmdln.option('-D', '--deleted', action='store_true',
                         help='show only the former deleted projects or 
packages')
+    @cmdln.option('-M', '--meta', action='store_true',
+                        help='list meta data files')
+    @cmdln.option('-R', '--revision', metavar='REVISION',
+                        help='specify revision (only for sources)')
     def do_list(self, subcmd, opts, *args):
         """${cmd_name}: List sources or binaries on the server
 
@@ -389,6 +391,7 @@
                                       package,
                                       verbose=opts.verbose,
                                       expand=opts.expand,
+                                      meta=opts.meta,
                                       revision=rev)
                     link_seen = '_link' in l
                     if opts.verbose:
@@ -2508,7 +2511,7 @@
         This command is asking to open an empty maintence incident. This can 
usually only be done by a responsible
         maintenance team.
         Please see the "mbranch" command on how to full such a project content 
and
-        the "patchinfo" command how add the required maintenance update 
informations.
+        the "patchinfo" command how add the required maintenance update 
information.
 
         usage:
             osc createincident [ MAINTENANCEPROJECT ]
@@ -6280,6 +6283,8 @@
                   help='force expansion of linked packages.')
     @cmdln.option('-u', '--unexpand', action='store_true',
                   help='always work with unexpanded packages.')
+    @cmdln.option('-M', '--meta', action='store_true',
+                        help='list meta data files')
     @cmdln.alias('less')
     def do_cat(self, subcmd, opts, *args):
         """${cmd_name}: Output the content of a file to standard output
@@ -6311,10 +6316,12 @@
         apiurl = self.get_api_url()
 
         query = { }
+        if opts.meta:
+            query['meta'] = 1
         if opts.revision:
             query['rev'] = opts.revision
         if opts.expand:
-            query['rev'] = show_upstream_srcmd5(apiurl, args[0], args[1], 
expand=True, revision=opts.revision)
+            query['rev'] = show_upstream_srcmd5(apiurl, args[0], args[1], 
expand=True, revision=opts.revision, meta=opts.meta)
         u = makeurl(apiurl, ['source', args[0], args[1], args[2]], query=query)
         try:
             if subcmd == 'less':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.132.0/osc/core.py new/osc-0.132.1/osc/core.py
--- old/osc-0.132.0/osc/core.py 2011-06-07 16:42:28.000000000 +0200
+++ new/osc-0.132.1/osc/core.py 2011-06-08 13:33:38.000000000 +0200
@@ -3,7 +3,7 @@
 # and distributed under the terms of the GNU General Public Licence,
 # either version 2, or version 3 (at your option).
 
-__version__ = '0.132'
+__version__ = '0.132.1'
 
 # __store_version__ is to be incremented when the format of the working copy
 # "store" changes in an incompatible way. Please add any needed migration
@@ -250,7 +250,7 @@
             root = ET.parse(f).getroot()
             self.read(root, True)
         except urllib2.HTTPError, e:
-            if e.code != 404:
+            if e.code != 400:
                 raise e
 
     def addVerifyFile(self, serviceinfo_node, filename):
@@ -2983,13 +2983,15 @@
     return [ node.get('name') for node in root.findall('entry') ]
 
 
-def meta_get_filelist(apiurl, prj, package, verbose=False, expand=False, 
revision=None):
+def meta_get_filelist(apiurl, prj, package, verbose=False, expand=False, 
revision=None, meta=False):
     """return a list of file names,
     or a list File() instances if verbose=True"""
 
     query = {}
     if expand:
         query['expand'] = 1
+    if meta:
+        query['meta'] = 1
     if revision:
         query['rev'] = revision
     else:

++++++ osc.dsc ++++++
--- /var/tmp/diff_new_pack.za7QDH/_old  2011-06-08 17:33:17.000000000 +0200
+++ /var/tmp/diff_new_pack.za7QDH/_new  2011-06-08 17:33:17.000000000 +0200
@@ -1,6 +1,6 @@
 Format: 1.0
 Source: osc
-Version: 0.132.0
+Version: 0.132.1
 Binary: osc
 Maintainer: Adrian Schroeter <[email protected]>
 Architecture: any


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to