diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-24 10:20:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-24 10:20:09 +0000 |
commit | a3ebda940b2d75d0a28e4b250ce6a23de06f9bba (patch) | |
tree | 1f04c7a5af27384c3b084213e014b91b5551b30e /urpm/removable.pm | |
parent | 5e1c20f181fac8df0636ecd04b24832ddb6cbc27 (diff) | |
download | urpmi-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/removable.pm')
-rw-r--r-- | urpm/removable.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm index 1ebad613..f215bf84 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -134,8 +134,8 @@ sub copy_packages_of_removable_media { { #- now we can consider the file to be fine. unlink "$urpm->{cachedir}/rpms/$filename"; - urpm::util::move("$urpm->{cachedir}/partial/$filename", "$urpm->{cachedir}/rpms/$filename"); - -r "$urpm->{cachedir}/rpms/$filename" and $sources->{$i} = "$urpm->{cachedir}/rpms/$filename"; + urpm::sys::move_or_die($urpm, "$urpm->{cachedir}/partial/$filename", "$urpm->{cachedir}/rpms/$filename"); + $sources->{$i} = "$urpm->{cachedir}/rpms/$filename"; } } unless ($sources->{$i}) { |