aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-21 16:09:27 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-21 16:09:27 +0000
commita135b0af015b446eda24ef6fad60eca63392fdd9 (patch)
tree02c2c8d92e029daa42ebdd3c6192f2032c7286d9 /Rpmdrake/gui.pm
parenta8637bae0db7635b4720201e247d04f3ab648b75 (diff)
downloadrpmdrake-a135b0af015b446eda24ef6fad60eca63392fdd9.tar
rpmdrake-a135b0af015b446eda24ef6fad60eca63392fdd9.tar.gz
rpmdrake-a135b0af015b446eda24ef6fad60eca63392fdd9.tar.bz2
rpmdrake-a135b0af015b446eda24ef6fad60eca63392fdd9.tar.xz
rpmdrake-a135b0af015b446eda24ef6fad60eca63392fdd9.zip
(toggle_nodes) properly account size of update packages (#33851)
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index fe6d7cee..686ce00a 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -638,7 +638,7 @@ sub toggle_nodes {
}
$set_state->($_, node_state($_), $model);
if (my $pkg = $pkgs->{$_}{pkg}) {
- $size_selected += $pkg->size * ($pkg->flag_installed ? ($new_state ? -1 : 1) : ($new_state ? 1 : -1));
+ $size_selected += $pkg->size * ($pkg->flag_installed && !$pkg->flag_upgrade ? ($new_state ? -1 : 1) : ($new_state ? 1 : -1));
}
}
}