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

dpkg-buildpackage: Avoid unnecessary removal of empty arguments in withecho

The code to remove empty arguments was added to handle a possible
empty rootcommand in commit 669ab06759db350765ac751cb52f487ea3418b7f,
when it was a scalar.

But then rootcommand was switched from a scalar to an array in
commit c2acc4de8e86a9f1ad56c546f16355b796be0c60, which makes the
removal of empty arguments unnecessary as the sublists get automatic
interpolation when calling the function.
Guillem Jover лет назад: 12
Родитель
Сommit
ee69feea1f
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      scripts/dpkg-buildpackage.pl

+ 0 - 1
scripts/dpkg-buildpackage.pl

@@ -523,7 +523,6 @@ sub mustsetvar {
 }
 
 sub withecho {
-    shift while !$_[0];
     print { *STDERR } " @_\n";
     system(@_)
 	and subprocerr("@_");