import-orig: rename sourcepackage to name
authorGuido Günther <agx@sigxcpu.org>
Sat, 21 Oct 2017 06:35:56 +0000 (08:35 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sat, 24 Nov 2018 18:56:43 +0000 (19:56 +0100)
since it's the source package's name

gbp/scripts/import_orig.py

index 3d974e935e9265f2a70133d5df2a1e1da980873b..9c859f24db7470c997c52492ef384c5db2805fc8 100644 (file)
@@ -427,9 +427,9 @@ def main(argv):
                 return ExitCodes.uscan_up_to_date
 
         # The main tarball
-        (sourcepackage, version) = detect_name_and_version(repo, upstream, options)
+        (name, version) = detect_name_and_version(repo, upstream, options)
         # Additional tarballs we expect to exist
-        component_tarballs = get_component_tarballs(sourcepackage,
+        component_tarballs = get_component_tarballs(name,
                                                     version,
                                                     upstream.path,
                                                     options.components)
@@ -441,10 +441,10 @@ def main(argv):
         if repo.bare:
             set_bare_repo_options(options)
 
-        upstream, tmpdir = unpack_tarballs(sourcepackage, upstream, version, component_tarballs, options)
+        upstream, tmpdir = unpack_tarballs(name, upstream, version, component_tarballs, options)
 
         (pristine_orig, linked) = prepare_pristine_tar(upstream.path,
-                                                       sourcepackage,
+                                                       name,
                                                        version)
 
         # Don't mess up our repo with git metadata from an upstream tarball
@@ -461,7 +461,7 @@ def main(argv):
             gbp.log.info("Importing '%s' to branch '%s'%s..." % (upstream.path,
                                                                  import_branch,
                                                                  filter_msg))
-            gbp.log.info("Source package is %s" % sourcepackage)
+            gbp.log.info("Source package is %s" % name)
             gbp.log.info("Upstream version is %s" % version)
 
             msg = upstream_import_commit_msg(options, version)