From: Joachim Breitner Date: Wed, 29 Jul 2009 16:49:44 +0000 (+0200) Subject: Even more gracefully handle edos-debcheck without reason explanation X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=31e1d36156a7248e4bbdbfe87f1558ee6762bd11;p=wannabuild.git Even more gracefully handle edos-debcheck without reason explanation --- diff --git a/bin/wanna-build b/bin/wanna-build index 5874837..82fb929 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -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' ); }