Просмотр исходного кода

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
Родитель
Сommit
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_INDEP) and $arch_all);
         next if (not ($include & BUILD_ARCH_DEP) and not $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') .
     $fields->{'Files'} .= "\n" . $checksums->get_checksum($f, 'md5') .
 			  ' ' . $checksums->get_size($f) .
 			  ' ' . $checksums->get_size($f) .
 			  " $file->{section} $file->{priority} $f";
 			  " $file->{section} $file->{priority} $f";