summaryrefslogtreecommitdiffstats
path: root/urpm/get_pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-24 10:26:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-24 10:26:47 +0000
commit7e26db01876f166892d77bf36aaf5868f6cf3fc9 (patch)
tree67850749da7adec8db8393ba4a799c97237b5a3b /urpm/get_pkgs.pm
parent3bc13084b3ac6222b0026b127dc55f0ed7ecbf8d (diff)
downloadurpmi-7e26db01876f166892d77bf36aaf5868f6cf3fc9.tar
urpmi-7e26db01876f166892d77bf36aaf5868f6cf3fc9.tar.gz
urpmi-7e26db01876f166892d77bf36aaf5868f6cf3fc9.tar.bz2
urpmi-7e26db01876f166892d77bf36aaf5868f6cf3fc9.tar.xz
urpmi-7e26db01876f166892d77bf36aaf5868f6cf3fc9.zip
further simplify (allowed by making "moving file" fatal)
Diffstat (limited to 'urpm/get_pkgs.pm')
-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};
}
}