rpm: support guessing spec file from git treeish
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 6 Sep 2013 13:07:08 +0000 (16:07 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:47:19 +0000 (14:47 +0200)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/import_orig_rpm.py

index b208ad1..8eacfb2 100755 (executable)
@@ -58,7 +58,7 @@ def detect_name_and_version(repo, source, options):
             # we're not on the packaging-branch (but upstream, for
             # example).
             spec = guess_spec_repo(repo, options.packaging_branch,
             # we're not on the packaging-branch (but upstream, for
             # example).
             spec = guess_spec_repo(repo, options.packaging_branch,
-                                   options.packaging_dir)
+                                   options.packaging_dir, True, preferred_fn)
             sourcepackage = spec.name
         except NoSpecError:
             if options.interactive:
             sourcepackage = spec.name
         except NoSpecError:
             if options.interactive: