Переглянути джерело

dpkg-buildpackage: Handle an empty rootcommand correctly

(withecho): Remove empty strings at the begin of the command array.
These can be caused by e.g. an emtpy $rootcommando. It is easiest to
filter them out here.
Frank Lichtenheld 19 роки тому
батько
коміт
669ab06759
3 змінених файлів з 10 додано та 0 видалено
  1. 7 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 1 0
      scripts/dpkg-buildpackage.pl

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2007-09-28  Frank Lichtenheld  <djpig@debian.org>
+
+	* scripts/dpkg-buildpackage.pl (withecho): Remove
+	empty strings at the begin of the command array.
+	These can be caused by e.g. an emtpy $rootcommando.
+	It is easiest to filter them out here.
+
 2007-09-24  Guillem Jover  <guillem@debian.org>
 
 	* scripts/dpkg-buildpackage.pl (signfile): Do not use absolute path

+ 2 - 0
debian/changelog

@@ -19,6 +19,8 @@ dpkg (1.14.7) UNRELEASED; urgency=low
   [ Frank Lichtenheld ]
   * Add _MTN to dpkg-source -i default regex. Suggested by Jari Aalto.
   * Convert dpkg-buildpackage to a Perl script.
+    Fix some bugs in the new script detected in experimental:
+    Closes: #444362
   * dpkg-buildpackage accepts a -j<n> option now which will set
     MAKEFLAGS(-j<n>) and DEB_BUILD_OPTIONS(parallel=<n>) accordingly.
     parallel=<n> in DEB_BUILD_OPTIONS will be passed to MAKEFLAGS as

+ 1 - 0
scripts/dpkg-buildpackage.pl

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