From: Joachim Breitner Date: Thu, 30 Jul 2009 10:24:48 +0000 (+0200) Subject: wanna-build --list: Format BD-Problem like Failed reasons X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=885589161aa887dd178aa99f51d8168e0497fc26;p=wannabuild.git wanna-build --list: Format BD-Problem like Failed reasons This prepares a corresponding change in status.git --- diff --git a/bin/wanna-build b/bin/wanna-build index 00ca7c4..277273c 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -1883,7 +1883,8 @@ sub list_packages { if $pkg->{'State'} =~ /^Failed/; print " Dependencies: $pkg->{'Depends'}\n" if $pkg->{'State'} eq "Dep-Wait"; - print " Reason: $pkg->{'BD-Problem'}\n" + print " Reasons for BD-Uninstallable:\n ", + join("\n ",split("\n",$pkg->{'BD-Problem'})), "\n" if $pkg->{'State'} eq "BD-Uninstallable"; print " Previous state was $pkg->{'Previous-State'} until ", "$pkg->{'State-Change'}\n"