]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Split the previous state and state change in 2 lines
authorKurt Roeckx <kurt@roeckx.be>
Sun, 28 Feb 2010 23:47:56 +0000 (23:47 +0000)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 28 Feb 2010 23:47:56 +0000 (23:47 +0000)
Now we didn't get a state change in case there was no previous state

bin/wanna-build

index 1de5e920a53155502dbafa70598a1458f5105721..a9a2f69bb5a969ea7deccf509e705b4f1267063f 100755 (executable)
@@ -1892,13 +1892,14 @@ sub list_packages {
                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"
-                       if $verbose && $pkg->{'previous_state'};
-               print "  Previous state $pkg->{'previous_state'} left $pkg->{'state_time'} ago\n"
+               print "  Previous state was $pkg->{'previous_state'}\n"
                        if $verbose && $pkg->{'previous_state'};
                print "  No previous state recorded\n"
                        if $verbose && !$pkg->{'previous_state'};
+               print "  State changed at $pkg->{'state_change'}\n"
+                       if $verbose && $pkg->{'state_change'};
+               print "  Previous state $pkg->{'previous_state'} left $pkg->{'state_time'} ago\n"
+                       if $verbose && $pkg->{'previous_state'};
                print "  Previous failing reasons:\n    ",
                      join("\n    ",split("\n",$pkg->{'old_failed'})), "\n"
                        if $verbose && $pkg->{'old_failed'};