diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-28 08:56:26 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-28 08:56:26 +0000 |
commit | c18fd26df23f8cfc8cf0fada3af5d85ef4c33732 (patch) | |
tree | b96791ef355379a61a49f0476e4bb4697926f05d /urpm.pm | |
parent | dc891fc82eae5a3408e840589a736b23787e38c5 (diff) | |
download | urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar.gz urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar.bz2 urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.tar.xz urpmi-c18fd26df23f8cfc8cf0fada3af5d85ef4c33732.zip |
Fix unlinking of medium list file
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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}; + } } } } |