Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package osc for openSUSE:Factory checked in 
at 2021-01-27 19:02:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/osc (Old)
 and      /work/SRC/openSUSE:Factory/.osc.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "osc"

Wed Jan 27 19:02:46 2021 rev:153 rq:867257 version:0.172.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/osc/osc.changes  2020-11-11 20:46:32.295655205 
+0100
+++ /work/SRC/openSUSE:Factory/.osc.new.28504/osc.changes       2021-01-27 
19:02:47.844856963 +0100
@@ -1,0 +2,24 @@
+Wed Jan 27 16:40:47 UTC 2021 - Marcus H??we <[email protected]>
+
+- reformat spec with a recent version of the obs-service-format_spec_file
+  service
+
+-------------------------------------------------------------------
+Wed Jan 27 13:31:51 UTC 2021 - Marcus H??we <[email protected]>
+
+- 0.172.0:
+  * support --lastsucceeded/--last-succeeded in "osc buildlog", "osc
+    remotebuildlog" + friends (perform the corresponding operation on
+    the build log of the last successful build)
+  * fix pypi deployment via Travis CI
+  * several fixes in request related code paths (no double html_escape
+    of a request's description etc.)
+  * support local builds in a systemd-nspawn container
+  * fix potential TypeErrors+UnicodeEncodeErrors in the util.cpio and
+    util.ar modules
+  * support local flatpak builds (requires a recent build version)
+  * "osc init <prj>" works for a non-existent (server-side) project <prj>
+  * .old dir support for source services so that some services have access
+    to the results of a previous service run
+
+-------------------------------------------------------------------

Old:
----
  osc-0.171.0.tar.gz

New:
----
  osc-0.172.0.tar.gz

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

Other differences:
------------------
++++++ osc.spec ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:48.692858275 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:48.696858281 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package osc
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,12 +27,12 @@
 %define use_python python
 %endif
 
-%define version_unconverted 0.171.0
+%define version_unconverted 0.172.0
 %define osc_plugin_dir %{_prefix}/lib/osc-plugins
 %define macros_file macros.osc
 
 Name:           osc
-Version:        0.171.0
+Version:        0.172.0
 Release:        0
 Summary:        Open Build Service Commander
 License:        GPL-2.0-or-later

++++++ PKGBUILD ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:48.724858325 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:48.728858331 +0100
@@ -1,5 +1,5 @@
 pkgname=osc
-pkgver=0.171.0
+pkgver=0.172.0
 pkgrel=0
 pkgdesc="Open Build Service client"
 arch=('x86_64')

++++++ _service ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:48.752858368 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:48.752858368 +0100
@@ -1,7 +1,7 @@
 <services>
   <service name="tar_scm" mode="disabled">
-    <param name="version">0.171.0</param>
-    <param name="revision">0.171.0</param>
+    <param name="version">0.172.0</param>
+    <param name="revision">0.172.0</param>
     <param name="url">git://github.com/openSUSE/osc.git</param>
     <param name="scm">git</param>
   </service>

++++++ debian.changelog ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:48.800858442 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:48.804858449 +0100
@@ -1,4 +1,22 @@
-osc (0.171.0) unstable; urgency=low
+osc (0.172.0-0) unstable; urgency=low
+  - Update to 0.172.0:
+    - support --lastsucceeded/--last-succeeded in "osc buildlog", "osc
+      remotebuildlog" + friends (perform the corresponding operation on
+      the build log of the last successful build)
+    - fix pypi deployment via Travis CI
+    - several fixes in request related code paths (no double html_escape
+      of a request's description etc.)
+    - support local builds in a systemd-nspawn container
+    - fix potential TypeErrors+UnicodeEncodeErrors in the util.cpio and
+      util.ar modules
+    - support local flatpak builds (requires a recent build version)
+    - "osc init <prj>" works for a non-existent (server-side) project <prj>
+    - .old dir support for source services so that some services have access
+      to the results of a previous service run
+
+ -- Marcus Huewe <[email protected]>  Wed, 27 Jan 2021 14:28:11 +0100
+
+osc (0.171.0-1) unstable; urgency=low
   - Package for Python3
 
  -- Nick Brown <[email protected]>  Wed, 30 Jan 2020 14:49:30 +0000

++++++ debian.compat ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:48.828858486 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:48.832858492 +0100
@@ -1 +1 @@
-9
+10

++++++ debian.control ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:48.860858535 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:48.860858535 +0100
@@ -1,7 +1,7 @@
 Source: osc
 Priority: extra
 Maintainer: Adrian Schroeter <[email protected]>, Rene Engelhard 
<[email protected]>
-Build-Depends: debhelper (>= 9), dh-python, python3-all, python3-setuptools
+Build-Depends: debhelper (>= 10), dh-python, python3-all, python3-setuptools
 Standards-Version: 3.7.1
 Section: devel
 

++++++ osc-0.171.0.tar.gz -> osc-0.172.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/.travis.yml new/osc-0.172.0/.travis.yml
--- old/osc-0.171.0/.travis.yml 2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/.travis.yml 2021-01-27 13:21:32.000000000 +0100
@@ -16,6 +16,8 @@
   - rm -rf $TRAVIS_BUILD_DIR/dist/*
 deploy:
   provider: pypi
+  skip_existing: true
+  skip_cleanup: true
   user: suse
   password:
     secure: 
R4+YNPW2tsiY06hibGvONYn0//1z1QdcY8VmNbYpIRly4eTAbPE9uejKpyuflUkznpEkoqCdFzi5FNFhgat9N+AkIKyX9NTkf0oxaKKbdqBM7H1V8bqLYlAO479262spRyO0ee5fV5v6g81AFjncIV+pGjtQ0Vg/sjVcvGa61bs=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/NEWS new/osc-0.172.0/NEWS
--- old/osc-0.171.0/NEWS        2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/NEWS        2021-01-27 13:21:32.000000000 +0100
@@ -1,3 +1,18 @@
+0.172.0
+  - support --lastsucceeded/--last-succeeded in "osc buildlog", "osc
+    remotebuildlog" + friends (perform the corresponding operation on
+    the build log of the last successful build)
+  - fix pypi deployment via Travis CI
+  - several fixes in request related code paths (no double html_escape
+    of a request's description etc.)
+  - support local builds in a systemd-nspawn container
+  - fix potential TypeErrors+UnicodeEncodeErrors in the util.cpio and
+    util.ar modules
+  - support local flatpak builds (requires a recent build version)
+  - "osc init <prj>" works for a non-existent (server-side) project <prj>
+  - .old dir support for source services so that some services have access
+    to the results of a previous service run
+
 0.171.0
   - maintainer search: lookup via package name by default and binary as 
fallback
   - fix crash on console resize when downloading files during build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/osc/build.py new/osc-0.172.0/osc/build.py
--- old/osc-0.171.0/osc/build.py        2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/osc/build.py        2021-01-27 13:21:32.000000000 +0100
@@ -389,6 +389,11 @@
                                     '-type', 'f'],
                                    
stdout=subprocess.PIPE).stdout.read().strip()
         s_built = ''
+    elif buildtype == 'flatpak':
+        b_built = subprocess.Popen(['find', os.path.join(pacdir, 'OTHER'),
+                                    '-type', 'f'],
+                                   
stdout=subprocess.PIPE).stdout.read().strip()
+        s_built = ''
     else:
         print('WARNING: Unknown package type \'%s\'.' % buildtype, 
file=sys.stderr)
         b_built = ''
@@ -587,9 +592,11 @@
         build_type = 'docker'
     if os.path.basename(build_descr) == 'fissile.yml':
         build_type = 'fissile'
-    if build_type not in ['spec', 'dsc', 'kiwi', 'arch', 'collax', 
'livebuild', 'simpleimage', 'snapcraft', 'appimage', 'docker', 'podman', 
'fissile']:
+    if build_descr.endswith('flatpak.yaml') or 
build_descr.endswith('flatpak.yml') or build_descr.endswith('flatpak.json'):
+        build_type = 'flatpak'
+    if build_type not in ['spec', 'dsc', 'kiwi', 'arch', 'collax', 
'livebuild', 'simpleimage', 'snapcraft', 'appimage', 'docker', 'podman', 
'fissile', 'flatpak']:
         raise oscerr.WrongArgs(
-                'Unknown build type: \'%s\'. Build description should end in 
.spec, .dsc, .kiwi, or .livebuild. Or being named PKGBUILD, build.collax, 
simpleimage, appimage.yml, snapcraft.yaml or Dockerfile' \
+                'Unknown build type: \'%s\'. Build description should end in 
.spec, .dsc, .kiwi, or .livebuild. Or being named PKGBUILD, build.collax, 
simpleimage, appimage.yml, snapcraft.yaml, flatpak.json, flatpak.yml, 
flatpak.yaml or Dockerfile' \
                         % build_type)
     if not os.path.isfile(build_descr):
         raise oscerr.WrongArgs('Error: build description file named \'%s\' 
does not exist.' % build_descr)
@@ -1201,7 +1208,7 @@
                        buildargs.append('--kiwi-parameter')
                        
buildargs.append('--add-repopriority='+xml.get('priority'))
 
-    if vm_type == "xen" or vm_type == "kvm" or vm_type == "lxc":
+    if vm_type == "xen" or vm_type == "kvm" or vm_type == "lxc" or vm_type == 
"nspawn":
         print('Skipping verification of package signatures due to secure VM 
build')
     elif bi.pacsuffix == 'rpm':
         if opts.no_verify:
@@ -1284,7 +1291,7 @@
             vm_options += [ '--vm-telnet=' + vm_telnet ]
         if vm_memory:
             vm_options += [ '--memory=' + vm_memory ]
-        if vm_type != 'lxc':
+        if vm_type != 'lxc' and vm_type != 'nspawn':
             vm_options += [ '--vm-disk=' + my_build_device ]
             vm_options += [ '--vm-swap=' + my_build_swap ]
             vm_options += [ '--logfile=%s/.build.log' % build_root ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/osc/commandline.py 
new/osc-0.172.0/osc/commandline.py
--- old/osc-0.171.0/osc/commandline.py  2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/osc/commandline.py  2021-01-27 13:21:32.000000000 +0100
@@ -242,7 +242,8 @@
         apiurl = self.get_api_url()
 
         if not package:
-            Project.init_project(apiurl, os.curdir, project, 
conf.config['do_package_tracking'])
+            Project.init_project(apiurl, os.curdir, project, 
conf.config['do_package_tracking'],
+                                 getPackageList=False)
             print('Initializing %s (Project: %s)' % (os.curdir, project))
         else:
             Package.init_package(apiurl, project, package, os.curdir)
@@ -1622,10 +1623,11 @@
         reqs = get_request_list(apiurl, dst_project, dst_package, 
req_type='submit', req_state=['new', 'review'])
         user = conf.get_apiurl_usr(apiurl)
         myreqs = [ i for i in reqs if i.state.who == user and i.reqid != 
opts.supersede ]
+        myreq_ids = [r.reqid for r in myreqs]
         repl = 'y'
         if len(myreqs) > 0 and not opts.yes:
             print('You already created the following submit request: %s.' % \
-                  ', '.join([i.reqid for i in myreqs ]))
+                  ', '.join(myreq_ids))
             repl = raw_input('Supersede the old requests? (y/n/c) ')
             if repl.lower() == 'c':
                 print('Aborting', file=sys.stderr)
@@ -1636,10 +1638,10 @@
         actionxml = """<action type="submit"> <source project="%s" 
package="%s"  rev="%s"/> <target project="%s" package="%s"/> %s </action>"""  % 
\
                 (src_project, src_package, opts.revision or 
show_upstream_rev(apiurl, src_project, src_package), dst_project, dst_package, 
options_block)
         if opts.supersede:
-            myreqs.append(opts.supersede)
+            myreq_ids.append(opts.supersede)
 
         #print 'created request id', result
-        return actionxml, myreqs
+        return actionxml, myreq_ids
 
     def _delete_request(self, args, opts):
         if len(args) < 1:
@@ -1839,14 +1841,14 @@
 
         i = 0
         actionsxml = ""
-        supersede = []
+        supersede = set()
         for ai in opts.actions:
             if ai == 'submit':
                 args = opts.actiondata[i]
                 i = i+1
                 actions, to_supersede = self._submit_request(args, opts, 
options_block)
                 actionsxml += actions
-                supersede.extend(to_supersede)
+                supersede.update(to_supersede)
             elif ai == 'delete':
                 args = opts.actiondata[i]
                 actionsxml += self._delete_request(args, opts)
@@ -1975,7 +1977,7 @@
         else:
             r.add_action('add_role', tgt_project=project, tgt_package=package,
               person_name=user, person_role=role)
-        r.description = _html_escape(opts.message or '')
+        r.description = opts.message
         r.create(apiurl)
         print(r.reqid)
 
@@ -2042,7 +2044,7 @@
 
         r = Request()
         r.add_action('delete', tgt_project=project, tgt_package=package, 
tgt_repository=repository)
-        r.description = _html_escape(opts.message)
+        r.description = opts.message
         if opts.accept_in_hours:
           r.accept_at_in_hours(int(opts.accept_in_hours))
         r.create(self.get_api_url())
@@ -2092,7 +2094,7 @@
         r = Request()
         r.add_action('change_devel', src_project=devel_project, 
src_package=devel_package,
             tgt_project=project, tgt_package=package)
-        r.description = _html_escape(opts.message)
+        r.description = opts.message
         r.create(self.get_api_url())
         print(r.reqid)
 
@@ -2660,7 +2662,7 @@
                                                                                
 project, package)
                                     msg = "%s (forwarded request %s from %s)" 
% (rq.description, reqid, rq.creator)
                                     rid = create_submit_request(apiurl, 
action.tgt_project, action.tgt_package,
-                                                                project, 
package, _html_escape(msg))
+                                                                project, 
package, msg)
                                     print(msg)
                                     print("New request #", rid)
                                     for req in reqs:
@@ -3168,7 +3170,7 @@
                     r.add_action('release', src_project=source_project, 
src_package=pac)
             else:
                 r.add_action('release', src_project=source_project)
-            r.description = _html_escape(opts.message)
+            r.description = opts.message
             r.create(apiurl)
         print(r.reqid)
 
@@ -5551,6 +5553,8 @@
     @cmdln.alias('buildlogtail')
     @cmdln.option('-l', '--last', action='store_true',
                         help='Show the last finished log file')
+    @cmdln.option('--lastsucceeded', '--last-succeeded', action='store_true',
+                        help='Show the last succeeded log file')
     @cmdln.option('-M', '--multibuild-package', metavar='MPAC',
                     help='get log of the specified multibuild package')
     @cmdln.option('-o', '--offset', metavar='OFFSET',
@@ -5608,6 +5612,8 @@
             query = { 'view': 'entry' }
             if opts.last:
                 query['last'] = 1
+            if opts.lastsucceeded:
+                query['lastsucceeded'] = 1
             u = makeurl(self.get_api_url(), ['build', quote_plus(project), 
quote_plus(repository), quote_plus(arch), quote_plus(package), '_log'], 
query=query)
             f = http_GET(u)
             root = ET.parse(f).getroot()
@@ -5621,7 +5627,7 @@
         elif opts.offset:
             offset = int(opts.offset)
         strip_time = opts.strip_time or conf.config['buildlog_strip_time']
-        print_buildlog(apiurl, quote_plus(project), quote_plus(package), 
quote_plus(repository), quote_plus(arch), offset, strip_time, opts.last)
+        print_buildlog(apiurl, quote_plus(project), quote_plus(package), 
quote_plus(repository), quote_plus(arch), offset, strip_time, opts.last, 
opts.lastsucceeded)
 
 
     def print_repos(self, repos_only=False, exc_class=oscerr.WrongArgs, 
exc_msg='Missing arguments', project=None):
@@ -5656,7 +5662,7 @@
     @cmdln.alias('remotebuildlogtail')
     @cmdln.option('-l', '--last', action='store_true',
                         help='Show the last finished log file')
-    @cmdln.option('--lastsucceeded', action='store_true',
+    @cmdln.option('--lastsucceeded', '--last-succeeded', action='store_true',
                         help='Show the last succeeded log file')
     @cmdln.option('-M', '--multibuild-package', metavar='MPAC',
                         help='show log file for specified multibuild package')
@@ -5700,6 +5706,8 @@
             query = { 'view': 'entry' }
             if opts.last:
                 query['last'] = 1
+            if opts.lastsucceeded:
+                query['lastsucceeded'] = 1
             u = makeurl(self.get_api_url(), ['build', quote_plus(project), 
quote_plus(repository), quote_plus(arch), quote_plus(package), '_log'], 
query=query)
             f = http_GET(u)
             root = ET.parse(f).getroot()
@@ -6245,7 +6253,7 @@
                 for subarch in osc.build.can_also_build.get(mainarch):
                     all_archs.append(subarch)
             for arg in args:
-                if arg.endswith('.spec') or arg.endswith('.dsc') or 
arg.endswith('.kiwi') or arg.endswith('.livebuild') or arg == 'PKGBUILD' or arg 
== 'build.collax' or arg == 'Dockerfile' or arg == 'fissile.yml' or arg == 
'appimage.yml':
+                if arg.endswith('.spec') or arg.endswith('.dsc') or 
arg.endswith('.kiwi') or arg.endswith('.livebuild') or arg == 'PKGBUILD' or arg 
== 'build.collax' or arg == 'Dockerfile' or arg == 'fissile.yml' or arg == 
'appimage.yml' or arg.endswith('flatpak.yaml') or arg.endswith('flatpak.yml') 
or arg.endswith('flatpak.json'):
                     arg_descr = arg
                 else:
                     if (arg == osc.build.hostarch or arg in all_archs) and 
arg_arch is None:
@@ -6309,7 +6317,8 @@
         # but be a bit more readable :)
         descr = glob.glob('*.spec') + glob.glob('*.dsc') + glob.glob('*.kiwi') 
+ glob.glob('*.livebuild') \
                 + glob.glob('PKGBUILD') + glob.glob('build.collax') + 
glob.glob('Dockerfile') + glob.glob('fissile.yml') \
-                + glob.glob('appimage.yml')
+                + glob.glob('appimage.yml') \
+                + glob.glob('*flatpak.yaml') + glob.glob('*flatpak.yml') + 
glob.glob('*flatpak.json')
 
         # FIXME:
         # * request repos from server and select by build type.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/osc/core.py new/osc-0.172.0/osc/core.py
--- old/osc-0.171.0/osc/core.py 2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/osc/core.py 2021-01-27 13:21:32.000000000 +0100
@@ -5,7 +5,7 @@
 
 from __future__ import print_function
 
-__version__ = '0.171.0'
+__version__ = '0.172.0'
 
 # __store_version__ is to be incremented when the format of the working copy
 # "store" changes in an incompatible way. Please add any needed migration
@@ -410,16 +410,27 @@
         return r
 
     def execute(self, dir, callmode = None, singleservice = None, verbose = 
None):
+        old_dir = os.path.join(dir, '.old')
+        if os.path.exists(old_dir) or os.path.islink(old_dir):
+            msg = '"%s" exists, please remove it' % old_dir
+            raise oscerr.OscIOError(None, msg)
+        try:
+            os.mkdir(old_dir)
+            return self._execute(dir, old_dir, callmode, singleservice,
+                                 verbose)
+        finally:
+            if os.path.exists(old_dir):
+                shutil.rmtree(old_dir)
+
+    def _execute(self, dir, old_dir, callmode=None, singleservice=None,
+                 verbose=None):
         import tempfile
 
         # cleanup existing generated files
         for filename in os.listdir(dir):
             if filename.startswith('_service:') or 
filename.startswith('_service_'):
-                ent = os.path.join(dir, filename)
-                if os.path.isdir(ent):
-                    shutil.rmtree(ent)
-                else:
-                    os.unlink(ent)
+                os.rename(os.path.join(dir, filename),
+                          os.path.join(old_dir, filename))
 
         allservices = self.services or []
         service_names = [s['name'] for s in allservices]
@@ -4191,7 +4202,7 @@
     # api will complete the request
     r.add_action('maintenance_release', src_project=src_project)
     # XXX: clarify why we need the unicode(...) stuff
-    r.description = _html_escape(unicode(message, 'utf8'))
+    r.description = unicode(message, 'utf8')
     r.create(apiurl)
     return r
 
@@ -4204,7 +4215,7 @@
     else:
         r.add_action('maintenance_incident', src_project=src_project, 
tgt_project=tgt_project, tgt_releaseproject=tgt_releaseproject, 
opt_sourceupdate = opt_sourceupdate)
     # XXX: clarify why we need the unicode(...) stuff
-    r.description = _html_escape(unicode(message, 'utf8'))
+    r.description = unicode(message, 'utf8')
     r.create(apiurl, addrevision=True, enforce_branching=enforce_branching)
     return r
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/osc/fetch.py new/osc-0.172.0/osc/fetch.py
--- old/osc-0.171.0/osc/fetch.py        2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/osc/fetch.py        2021-01-27 13:21:32.000000000 +0100
@@ -90,8 +90,8 @@
                     try:
                         fd, tmpfile = tempfile.mkstemp(prefix='osc_build_file')
                         archive.copyin_file(hdr.filename,
-                                            os.path.dirname(tmpfile),
-                                            os.path.basename(tmpfile))
+                                            
decode_it(os.path.dirname(tmpfile)),
+                                            
decode_it(os.path.basename(tmpfile)))
                         self.move_package(tmpfile, pac.localdir, pac)
                     finally:
                         os.close(fd)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/osc/util/ar.py 
new/osc-0.172.0/osc/util/ar.py
--- old/osc-0.171.0/osc/util/ar.py      2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/osc/util/ar.py      2021-01-27 13:21:32.000000000 +0100
@@ -72,7 +72,7 @@
         and permissions.
         """
         if not dir:
-            dir = os.getcwd()
+            dir = os.getcwdb()
         fn = os.path.join(dir, self.name)
         with open(fn, 'wb') as f:
             f.write(self.getvalue())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/osc-0.171.0/osc/util/cpio.py 
new/osc-0.172.0/osc/util/cpio.py
--- old/osc-0.171.0/osc/util/cpio.py    2020-11-10 14:25:02.000000000 +0100
+++ new/osc-0.172.0/osc/util/cpio.py    2021-01-27 13:21:32.000000000 +0100
@@ -182,7 +182,7 @@
         hdr = self._get_hdr(filename)
         if not hdr:
             raise CpioError(filename, '\'%s\' does not exist in archive' % 
filename)
-        dest = dest or os.getcwd()
+        dest = dest or os.getcwdb()
         fn = new_fn or filename
         self._copyin_file(hdr, dest, fn)
 
@@ -191,7 +191,7 @@
         extracts the cpio archive to dest.
         If dest is None $PWD will be used.
         """
-        dest = dest or os.getcwd()
+        dest = dest or os.getcwdb()
         for h in self.hdrs:
             self._copyin_file(h, dest, h.filename)
 

++++++ osc.dsc ++++++
--- /var/tmp/diff_new_pack.roIcPd/_old  2021-01-27 19:02:49.244859129 +0100
+++ /var/tmp/diff_new_pack.roIcPd/_new  2021-01-27 19:02:49.248859136 +0100
@@ -1,8 +1,8 @@
 Format: 1.0
 Source: osc
-Version: 0.171.0
+Version: 0.172.0-0
 Binary: osc
 Maintainer: Adrian Schroeter <[email protected]>
 Architecture: any
 Standards-Version: 3.7.1
-Build-Depends: debhelper (>= 9), dh-python, python3-all, python3-setuptools
+Build-Depends: debhelper (>= 10), dh-python, python3-all, python3-setuptools

Reply via email to