summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgbp/scripts/import_srpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/import_srpm.py b/gbp/scripts/import_srpm.py
index 811f0348..49c1b12a 100755
--- a/gbp/scripts/import_srpm.py
+++ b/gbp/scripts/import_srpm.py
@@ -218,7 +218,7 @@ def main(argv):
if options.unpacked:
files = [os.path.basename(patch['filename']) for patch in spec.patches.itervalues()]
for src in spec.sources.itervalues():
- if not spec.orig_file or src.filename != spec.orig_file:
+ if not spec.orig_file or src['filename'] != spec.orig_file:
files.append(src['filename'])
files.append(os.path.basename(pkg))
for fname in files: