diff options
Diffstat (limited to 'URPM')
-rw-r--r-- | URPM/Resolve.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 12b4a01..494cb11 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -1541,7 +1541,11 @@ sub _selected_size_filesize { foreach (values %{$state->{rejected} || {}}) { $_->{removed} || $_->{obsoleted} or next; - $size -= $_->{size}; + if ($_->{size} < 0) { + $size += $_->{size}; + } else { + $size -= $_->{size}; + } } foreach (@{$state->{orphans_to_remove} || []}) { |