chiark / gitweb /
dsc import: Assign $package earlier
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 03:22:39 +0000 (03:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 23:43:36 +0000 (23:43 +0000)
No functional change

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index ca343af..775e03c 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6022,6 +6022,7 @@ sub cmd_import_dsc {
 
     parse_dscdata();
 
+    $package = getfield $dsc, 'Source';
     parse_dsc_field($dsc, "Dgit metadata in .dsc");
 
     if (defined $dsc_hash
@@ -6058,7 +6059,6 @@ Specify  +$specbranch to overwrite, discarding existing history
 END
        if $oldhash && !$force;
 
-    $package = getfield $dsc, 'Source';
     my @dfi = dsc_files_info();
     foreach my $fi (@dfi) {
        my $f = $fi->{Filename};