瀏覽代碼

dpkg-genchanges: Do not use an intermediate variable with the upload dir

We only use it in one place, just inline the $uploadfilesdir variable
there.
Guillem Jover 12 年之前
父節點
當前提交
13871b788e
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      scripts/dpkg-genchanges.pl

+ 1 - 2
scripts/dpkg-genchanges.pl

@@ -496,8 +496,7 @@ for my $file ($dist->get_files()) {
         next if (not ($include & BUILD_ARCH_INDEP) and $arch_all);
         next if (not ($include & BUILD_ARCH_DEP) and not $arch_all);
     }
-    my $uf = "$uploadfilesdir/$f";
-    $checksums->add_from_file($uf, key => $f);
+    $checksums->add_from_file("$uploadfilesdir/$f", key => $f);
     $fields->{'Files'} .= "\n" . $checksums->get_checksum($f, 'md5') .
 			  ' ' . $checksums->get_size($f) .
 			  " $file->{section} $file->{priority} $f";