summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-09-24 15:53:39 +0000
committerFrancois Pons <fpons@mandriva.com>2001-09-24 15:53:39 +0000
commitef5e74357948046f83dd41938334b8cc4b499e68 (patch)
tree61a00e7f7cfca98dc4e3ea9f32fab0b0581868a6
parent9642ccb087d05fe183867337d8acce41d32de796 (diff)
downloadurpmi-ef5e74357948046f83dd41938334b8cc4b499e68.tar
urpmi-ef5e74357948046f83dd41938334b8cc4b499e68.tar.gz
urpmi-ef5e74357948046f83dd41938334b8cc4b499e68.tar.bz2
urpmi-ef5e74357948046f83dd41938334b8cc4b499e68.tar.xz
urpmi-ef5e74357948046f83dd41938334b8cc4b499e68.zip
fixed stale rpm file in cache with 0 in size.
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 7a9fac25..b3ed17c1 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1518,7 +1518,7 @@ sub get_source_packages {
#- examine the local repository, which is trusted.
opendir D, "$urpm->{cachedir}/rpms";
while (defined($_ = readdir D)) {
- if (/([^\/]*)\.rpm/) {
+ if (/([^\/]*)\.rpm/ && -s "$urpm->{cachedir}/rpms/$1.rpm") {
if (keys(%{$file2fullnames{$1} || {}}) > 1) {
$urpm->{error}(_("there are multiples packages with the same rpm filename \"%s\""), $1);
next;