import-srpm: fix bug in importing unpacked sources
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 6 Jun 2012 12:12:54 +0000 (15:12 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 6 Jun 2012 12:12:54 +0000 (15:12 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/import_srpm.py

index 811f0348d9f0121a2665f3db2ef6008c2d6b83bd..49c1b12a12eaf0676bdab8d82eb6a595ef5e692f 100755 (executable)
@@ -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: