chiark / gitweb /
Do not report the (irrelevant) $? when madison parsing fails.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 23:35:19 +0000 (23:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 23:35:19 +0000 (23:35 +0000)
debian/changelog
dgit

index 6080f8ff0d8b86d3937f7997be29305b5411ed66..aaf0ead36ad5266375051cbee5a399ba9c0b93fd 100644 (file)
@@ -1,6 +1,7 @@
 dgit (0.21~~iwj) unstable; urgency=low
 
   * Use failedcmd to report errors when ssh psql fails.  Closes:#734281.
+  * Do not report the (irrelevant) $? when madison parsing fails.
   * Add `Testsuite: autopkgtest' to debian/control.  (This will only have
     the right effect with recent enought dpkg, and will generate a warning
     with earlier versions of dpkg.
diff --git a/dgit b/dgit
index 94454d33170b15546c42f0d42c77f27d0453ba7f..19d6b0113798525c02775eabd9fd137c878a3293 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -636,7 +636,7 @@ sub madison_parse ($) {
        $l =~ m{^ \s*( [^ \t|]+ )\s* \|
                   \s*( [^ \t|]+ )\s* \|
                   \s*( [^ \t|/]+ )(?:/([^ \t|/]+))? \s* \|
-                  \s*( [^ \t|]+ )\s* }x or die "$rmad $?";
+                  \s*( [^ \t|]+ )\s* }x or die "$rmad ?";
        $1 eq $package or die "$rmad $package ?";
        my $vsn = $2;
        my $newsuite = $3;