Sfoglia il codice sorgente

dpkg-genchanges: Only track attributes for distributed files

Guillem Jover 12 anni fa
parent
commit
b777140be7
1 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. 6 5
      scripts/dpkg-genchanges.pl

+ 6 - 5
scripts/dpkg-genchanges.pl

@@ -415,11 +415,6 @@ if (!is_binaryonly) {
     $checksums->add_from_file($dsc, key => "$spackage\_$sversion.dsc");
     $checksums->add_from_control($dsc_fields, use_files_for_md5 => 1);
 
-    for my $f ($checksums->get_files()) {
-	$f2sec{$f} = $sec;
-	$f2pri{$f} = $pri;
-    }
-
     # Compare upstream version to previous upstream version to decide if
     # the .orig tarballs must be included
     my $include_tarball;
@@ -448,6 +443,12 @@ if (!is_binaryonly) {
 	}
         $origsrcmsg= _g('including full source code in upload');
     }
+
+    # Only add attributes for files being distributed.
+    for my $f ($checksums->get_files()) {
+	$f2sec{$f} = $sec;
+	$f2pri{$f} = $pri;
+    }
 } else {
     $origsrcmsg= _g('binary-only upload - not including any source code');
 }