diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-11-04 16:22:30 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-11-04 16:22:30 +0000 |
commit | 5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713 (patch) | |
tree | 58dea230537df4a31645a841cc6b87b87188b8a9 /urpm/download.pm | |
parent | a0bd3573950dc7366957fbd15ff63591ef29af98 (diff) | |
download | urpmi-5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713.tar urpmi-5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713.tar.gz urpmi-5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713.tar.bz2 urpmi-5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713.tar.xz urpmi-5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713.zip |
Factor some system()s
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 734487d9..f9f4be2d 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -160,8 +160,9 @@ sub sync_file { foreach (@_) { my ($in) = m!^(?:removable[^:]*:/|file:/)(/.*)!; propagate_sync_callback($options, 'start', $_); - system("cp", "-p", "-R", $in || $_, ref($options) ? $options->{dir} : $options) - and die N("copy failed"); + require urpm::util; + urpm::util::copy($in || $_, ref($options) ? $options->{dir} : $options) + or die N("copy failed"); propagate_sync_callback($options, 'end', $_); } } |