diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-27 10:05:56 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-27 10:05:56 +0000 |
commit | cdb6e75eb7121b79a8ff534d701d48d529fbe042 (patch) | |
tree | bdcc786c53a0cffa03e02ef8f1c5761216562395 | |
parent | 68258b087964a1dfd272be12f8aa2b7ea4c36642 (diff) | |
download | urpmi-cdb6e75eb7121b79a8ff534d701d48d529fbe042.tar urpmi-cdb6e75eb7121b79a8ff534d701d48d529fbe042.tar.gz urpmi-cdb6e75eb7121b79a8ff534d701d48d529fbe042.tar.bz2 urpmi-cdb6e75eb7121b79a8ff534d701d48d529fbe042.tar.xz urpmi-cdb6e75eb7121b79a8ff534d701d48d529fbe042.zip |
Fail earlier and more aggressively when downloading an rpm fails
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2116,7 +2116,11 @@ sub register_rpms { $urpm->{log}(N("...retrieving done")); $_ = "$urpm->{cachedir}/partial/$basename"; }; - $@ and $urpm->{error}(N("...retrieving failed: %s", $@)); + if ($@) { + $urpm->{error}(N("...retrieving failed: %s", $@)); + unlink "$urpm->{cachedir}/partial/$basename"; + next; + } } else { -r $_ or $error = 1, $urpm->{error}(N("unable to access rpm file [%s]", $_)), next; } |