summaryrefslogtreecommitdiffstats
path: root/urpm/get_pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-24 10:20:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-24 10:20:09 +0000
commita3ebda940b2d75d0a28e4b250ce6a23de06f9bba (patch)
tree1f04c7a5af27384c3b084213e014b91b5551b30e /urpm/get_pkgs.pm
parent5e1c20f181fac8df0636ecd04b24832ddb6cbc27 (diff)
downloadurpmi-a3ebda940b2d75d0a28e4b250ce6a23de06f9bba.tar
urpmi-a3ebda940b2d75d0a28e4b250ce6a23de06f9bba.tar.gz
urpmi-a3ebda940b2d75d0a28e4b250ce6a23de06f9bba.tar.bz2
urpmi-a3ebda940b2d75d0a28e4b250ce6a23de06f9bba.tar.xz
urpmi-a3ebda940b2d75d0a28e4b250ce6a23de06f9bba.zip
- urpmi, urpmi.addmedia, urpmi.update:
o have fatal errors on some errors that must not happen (eg: moving rpm from download dir to cachedir)
Diffstat (limited to 'urpm/get_pkgs.pm')
-rw-r--r--urpm/get_pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm
index cc8d41af..7ed81ce6 100644
--- a/urpm/get_pkgs.pm
+++ b/urpm/get_pkgs.pm
@@ -170,8 +170,8 @@ sub download_packages_of_distant_media {
{
#- it seems the the file has been downloaded correctly and has been checked to be valid.
unlink "$rpms_dir/$filename";
- urpm::util::move("$partial_dir/$filename", "$rpms_dir/$filename");
- -r "$rpms_dir/$filename" and $sources->{$i} = "$rpms_dir/$filename";
+ urpm::sys::move_or_die($urpm, "$partial_dir/$filename", "$rpms_dir/$filename");
+ $sources->{$i} = "$rpms_dir/$filename";
}
unless ($sources->{$i}) {
$error_sources->{$i} = $distant_sources{$i};