summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-15 15:25:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-15 15:25:03 +0000
commit9d2786e3e8f1d055357137eb76b6c803094a748f (patch)
tree2a1be03b0a68d9b3bb8ad67bd073fe48cbce5130 /urpm.pm
parentba6f31845b6ac979f5ecaf4ed465bb8a8c6ce77a (diff)
downloadurpmi-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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 05b1091f..99f66283 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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.