summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/get_pkgs.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm
index 7ed81ce6..b6a792dc 100644
--- a/urpm/get_pkgs.pm
+++ b/urpm/get_pkgs.pm
@@ -172,8 +172,7 @@ sub download_packages_of_distant_media {
unlink "$rpms_dir/$filename";
urpm::sys::move_or_die($urpm, "$partial_dir/$filename", "$rpms_dir/$filename");
$sources->{$i} = "$rpms_dir/$filename";
- }
- unless ($sources->{$i}) {
+ } else {
$error_sources->{$i} = $distant_sources{$i};
}
}