summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index c4b6134a..56c9eeaa 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1629,7 +1629,7 @@ sub _update_medium_first_pass {
#- but use newly created file.
unlink statedir_hdlist($urpm, $medium);
unlink statedir_synthesis($urpm, $medium);
- $medium->{list} unlink statedir_list($urpm, $medium);
+ $medium->{list} and unlink statedir_list($urpm, $medium);
unless ($medium->{headers}) {
urpm::util::move(cachedir_with_hdlist($urpm, $medium, 's'),
statedir_hdlist_or_synthesis($urpm, $medium, 's'));