summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-28 08:56:26 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-28 08:56:26 +0000
commitc18fd26df23f8cfc8cf0fada3af5d85ef4c33732 (patch)
treeb96791ef355379a61a49f0476e4bb4697926f05d
parentdc891fc82eae5a3408e840589a736b23787e38c5 (diff)
downloadurpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar
urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar.gz
urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar.bz2
urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar.xz
urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.zip
Fix unlinking of medium list file
-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};
+ }
}
}
}