]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wanna-build
wanna-build --list: Format BD-Problem like Failed reasons
[wannabuild.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"