From f48436de6bd2a05f46763a6cafc84ef043d74fc5 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Fri, 4 Sep 2009 19:00:07 +0000 Subject: [PATCH] Some places where still using State-Change instead of state_change. --- bin/wanna-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/wanna-build b/bin/wanna-build index 070009f..772964c 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -1768,9 +1768,9 @@ sub list_packages { next if $category && $pkg->{'state'} eq "Failed" && $pkg->{'failed_category'} ne $category; next if ($list_min_age > 0 && - ($ctime-parse_date($pkg->{'State-Change'})) < $list_min_age)|| + ($ctime-parse_date($pkg->{'state_change'})) < $list_min_age)|| ($list_min_age < 0 && - ($ctime-parse_date($pkg->{'State-Change'})) > -$list_min_age); + ($ctime-parse_date($pkg->{'state_change'})) > -$list_min_age); push( @list, $pkg ); } @@ -1800,7 +1800,7 @@ sub list_packages { 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" + "$pkg->{'state_change'}\n" if $verbose && $pkg->{'previous_state'}; print " No previous state recorded\n" if $verbose && !$pkg->{'previous_state'}; @@ -1972,7 +1972,7 @@ sub change_state { return if defined($$state) and $$state eq $newstate; $pkg->{'previous_state'} = $$state if defined($$state); - $pkg->{'State-Change'} = $curr_date; + $pkg->{'state_change'} = $curr_date; if (defined($$state) and $$state eq 'Failed') { $pkg->{'old_failed'} = -- 2.39.2