From bbf5ba2c5eda231336baa8047320a2ff32360a8a Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 28 Feb 2010 23:47:56 +0000 Subject: [PATCH] Split the previous state and state change in 2 lines Now we didn't get a state change in case there was no previous state --- bin/wanna-build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/wanna-build b/bin/wanna-build index 1de5e92..a9a2f69 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -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'}; -- 2.39.2