summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 2a476e4d..afb8229e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1576,8 +1576,10 @@ this could happen if you mounted manually the directory when creating the medium
}
} else {
#- the flag is no more necessary.
- delete $medium->{list}
- and unlink "$urpm->{statedir}/$medium->{list}";
+ if ($medium->{list}) {
+ unlink "$urpm->{statedir}/$medium->{list}";
+ delete $medium->{list};
+ }
}
}
}