summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-10-02 21:49:49 +0200
committerOlav Vitters <olav@vitters.nl>2020-10-02 21:49:49 +0200
commit373fc498b4c34b41fad0563185b39daa5234c92c (patch)
tree8de79596ac6a049806c59657c3c4679de5f18e34
parent5c8733ac6767d860b0b89d7e6ed7344538019e62 (diff)
downloadmgagnome-373fc498b4c34b41fad0563185b39daa5234c92c.tar
mgagnome-373fc498b4c34b41fad0563185b39daa5234c92c.tar.gz
mgagnome-373fc498b4c34b41fad0563185b39daa5234c92c.tar.bz2
mgagnome-373fc498b4c34b41fad0563185b39daa5234c92c.tar.xz
mgagnome-373fc498b4c34b41fad0563185b39daa5234c92c.zip
various runtime error fixes
-rwxr-xr-xmgagnome8
1 files 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: