]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Even more gracefully handle edos-debcheck without reason explanation
authorJoachim Breitner <nomeata@debian.org>
Wed, 29 Jul 2009 16:49:44 +0000 (18:49 +0200)
committerJoachim Breitner <nomeata@debian.org>
Wed, 29 Jul 2009 16:49:44 +0000 (18:49 +0200)
bin/wanna-build

index 58748372332f219d4a7f541f84536f5673eeeeff..82fb92985f3c292b8c38e24f25bacd0623418c38 100755 (executable)
@@ -2591,6 +2591,7 @@ sub call_edos_depcheck {
                /^Package:\s*(\S+)$/mi and $key = $1;
                /^Failed-Why:(([^\n]|\n ([^\n]|\.))*)$/msi and $reason = $1;
                $reason =~ s/^\s*//mg;
+               $reason ||= 'No reason given by edos-debcheck';
 
                if (exists $interesting_packages{$key}) {
                    $interesting_packages{$key} = $reason;
@@ -2613,7 +2614,6 @@ sub call_edos_depcheck {
            if (defined $interesting_packages{$key}) {
                    change_state( \$pkg, 'BD-Uninstallable' );
                    $pkg->{'Reason'} = $interesting_packages{$key};
-                   $pkg->{'Reason'} ||= 'No reason given by edos-debcheck';
            } else {
                    change_state( \$pkg, 'Needs-Build' );
            }