diff options
author | Francois Pons <fpons@mandriva.com> | 2001-09-24 15:53:39 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-09-24 15:53:39 +0000 |
commit | ef5e74357948046f83dd41938334b8cc4b499e68 (patch) | |
tree | 61a00e7f7cfca98dc4e3ea9f32fab0b0581868a6 | |
parent | 9642ccb087d05fe183867337d8acce41d32de796 (diff) | |
download | urpmi-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.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |