Ver código fonte

dpkg-buildflags: fix --dump to return 0 as exit code

Reported-by: Yves-Alexis Perez <corsac@debian.org>
Raphaël Hertzog 14 anos atrás
pai
commit
dd483ad8e4
2 arquivos alterados com 2 adições e 0 exclusões
  1. 1 0
      debian/changelog
  2. 1 0
      scripts/dpkg-buildflags.pl

+ 1 - 0
debian/changelog

@@ -3,6 +3,7 @@ dpkg (1.16.1.1) UNRELEASED; urgency=low
   * Fix dpkg-source to not ignore the automatic patch when checking
     for unrecorded changes.
   * Let dpkg-source --commit create debian/patches when required.
+  * Fix dpkg-buildflags --dump to return 0 as exit code and not 1.
 
  -- Raphaël Hertzog <hertzog@debian.org>  Tue, 27 Sep 2011 08:15:51 +0200
 

+ 1 - 0
scripts/dpkg-buildflags.pl

@@ -136,6 +136,7 @@ if ($action eq "get") {
 	my $value = $build_flags->get($flag);
 	print "$flag=$value\n";
     }
+    exit(0);
 }
 
 exit(1);