diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-15 15:25:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-15 15:25:03 +0000 |
commit | 9d2786e3e8f1d055357137eb76b6c803094a748f (patch) | |
tree | 2a1be03b0a68d9b3bb8ad67bd073fe48cbce5130 /urpm.pm | |
parent | ba6f31845b6ac979f5ecaf4ed465bb8a8c6ce77a (diff) | |
download | urpmi-9d2786e3e8f1d055357137eb76b6c803094a748f.tar urpmi-9d2786e3e8f1d055357137eb76b6c803094a748f.tar.gz urpmi-9d2786e3e8f1d055357137eb76b6c803094a748f.tar.bz2 urpmi-9d2786e3e8f1d055357137eb76b6c803094a748f.tar.xz urpmi-9d2786e3e8f1d055357137eb76b6c803094a748f.zip |
use copy_and_own
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2752,7 +2752,7 @@ sub copy_packages_of_removable_media { #- First, copy in partial cache, and if the package is still good, #- transfer it to the rpms cache. unlink "$urpm->{cachedir}/partial/$filename"; - if (urpm::util::copy($filepath, "$urpm->{cachedir}/partial") && + if (copy_and_own($filepath, "$urpm->{cachedir}/partial/$filename") && URPM::verify_rpm("$urpm->{cachedir}/partial/$filename", nosignatures => 1)) { #- now we can consider the file to be fine. |