diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-22 16:02:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-22 16:02:38 +0000 |
commit | 84309331357288d3de5fa1ecb563c5aa7e92f9b3 (patch) | |
tree | caac8e8de6d238d9f482b8df24e63a67ccdafdb4 /URPM/Resolve.pm | |
parent | 8edbe99ac1d9c15203ef5c2c566a7507e81c080b (diff) | |
download | perl-URPM-84309331357288d3de5fa1ecb563c5aa7e92f9b3.tar perl-URPM-84309331357288d3de5fa1ecb563c5aa7e92f9b3.tar.gz perl-URPM-84309331357288d3de5fa1ecb563c5aa7e92f9b3.tar.bz2 perl-URPM-84309331357288d3de5fa1ecb563c5aa7e92f9b3.tar.xz perl-URPM-84309331357288d3de5fa1ecb563c5aa7e92f9b3.zip |
(_selected_size_filesize) simplify
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r-- | URPM/Resolve.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 9431044..f79c438 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -1552,11 +1552,7 @@ sub _selected_size_filesize { foreach (values %{$state->{rejected} || {}}) { $_->{removed} || $_->{obsoleted} or next; - if ($_->{size} < 0) { - $size += $_->{size}; - } else { - $size -= $_->{size}; - } + $size -= abs($_->{size}); } foreach (@{$state->{orphans_to_remove} || []}) { |