From 373fc498b4c34b41fad0563185b39daa5234c92c Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Fri, 2 Oct 2020 21:49:49 +0200 Subject: various runtime error fixes --- mgagnome | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mgagnome b/mgagnome index eda42fb..2a04350 100755 --- a/mgagnome +++ b/mgagnome @@ -366,7 +366,7 @@ class SpecFile(): """Description of the changes made to the spec file""" return ''.join(self._changes.keys()) \ if len(self._changes) == 1 \ - else "\n".join(("- %s" % change for change in self._changes.keys())) + else "\n".join(("- %s" % change for change in self._changes)) @property def made_changes(self): @@ -582,7 +582,7 @@ class SpecFile(): # Optionally explain the intended and failed buildrequire changes if explain_changes: if debug_enabled: - for keys in list(convert_brs.items()): + for keys in convert_brs.values(): if 'changes' in keys and keys['changes']: pprint.pprint(keys['changes']) @@ -1078,7 +1078,7 @@ class SpecFile(): subprocess.check_call(['bm', '-p', '--nodeps'], cwd=self.cwd) except subprocess.CalledProcessError: logfile = self.path.parent.joinpath( - 'log.%s' % self.path.name.stem + 'log.%s' % self.path.stem ) failed_patch = None @@ -1758,7 +1758,7 @@ def join_streams(show_version=False, only_diff_version=False, auto_update=True): for package_name in list(downstream.tarballs[module].keys()): package_version = downstream.tarballs[module][package_name] spec_version = None - package = Downstream.package(package) + package = Downstream.package(package_name) cwd = package.path if show_version or only_diff_version: -- cgit v1.2.1