From: Joachim Breitner Date: Wed, 29 Jul 2009 11:22:23 +0000 (+0200) Subject: Always change the package state via change_state X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5133b07127daa50ce2044991d04cb4fec13b1cd7;p=wannabuild.git Always change the package state via change_state --- diff --git a/bin/wanna-build b/bin/wanna-build index 4a22860..b38bf09 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -2611,11 +2611,9 @@ sub call_edos_depcheck { (not defined $interesting_packages{$key} && $pkg->{'State'} eq 'BD-Uninstallable'); if ($change) { if (defined $interesting_packages{$key}) { - $pkg->{'State'} = 'BD-Uninstallable'; - $pkg->{'Reason'} = $interesting_packages{$key}; change_state( \$pkg, 'BD-Uninstallable' ); + $pkg->{'Reason'} = $interesting_packages{$key}; } else { - $pkg->{'State'} = 'Needs-Build'; change_state( \$pkg, 'Needs-Build' ); } log_ta( $pkg, "--merge-all" );