]> git.donarmstrong.com Git - wannabuild.git/commitdiff
wanna-build --list: Format BD-Problem like Failed reasons
authorJoachim Breitner <nomeata@debian.org>
Thu, 30 Jul 2009 10:24:48 +0000 (12:24 +0200)
committerJoachim Breitner <nomeata@debian.org>
Thu, 30 Jul 2009 10:24:48 +0000 (12:24 +0200)
This prepares a corresponding change in status.git

bin/wanna-build

index 00ca7c46b30dabc73b6a2795f18d1914185b7020..277273cab3f46dd3068c0a647f8d433bfc22ddb7 100755 (executable)
@@ -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"