summaryrefslogtreecommitdiffstats
path: root/urpm/orphans.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/orphans.pm')
-rw-r--r--urpm/orphans.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm
index 9399f9e4..8f2553a6 100644
--- a/urpm/orphans.pm
+++ b/urpm/orphans.pm
@@ -100,8 +100,11 @@ sub _installed_req_and_unreq_and_update_unrequested_list {
my ($unreq, $req) = partition { $unrequested->{$_->name} } @$pkgs;
# update the list (to filter dups and now-removed-pkgs)
+ my @old = keys %$unrequested;
my @new = map { $_->name } @$unreq;
- _write_unrequested_list__file($urpm, \@new);
+ if (@new != @old) {
+ _write_unrequested_list__file($urpm, \@new);
+ }
($req, $unreq, $unrequested);
}