summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-13 12:13:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-13 12:13:06 +0000
commit526afa76d1f7f3dcfe27bcbd5b4b1eb5351f30a0 (patch)
treee26c96e99e0bb74c0e409078e90c34f9f036f5ca /urpm
parent47e693a13dac3ad1c3409f620a3d5caa3a747f90 (diff)
downloadurpmi-526afa76d1f7f3dcfe27bcbd5b4b1eb5351f30a0.tar
urpmi-526afa76d1f7f3dcfe27bcbd5b4b1eb5351f30a0.tar.gz
urpmi-526afa76d1f7f3dcfe27bcbd5b4b1eb5351f30a0.tar.bz2
urpmi-526afa76d1f7f3dcfe27bcbd5b4b1eb5351f30a0.tar.xz
urpmi-526afa76d1f7f3dcfe27bcbd5b4b1eb5351f30a0.zip
- correctly cook args to sync_file()
- util::cfg is not needed in urpm::download
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 22720cfc..2a60a4eb 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -4,7 +4,6 @@ package urpm::download;
use strict;
use urpm::msg;
-use urpm::cfg;
use urpm::util;
use Cwd;
use Exporter;
@@ -192,10 +191,9 @@ sub propagate_sync_callback {
sub sync_file {
my $options = shift;
foreach (@_) {
- my ($in) = m!^(?:removable[^:]*:/|file:/)(/.*)!;
propagate_sync_callback($options, 'start', $_);
require urpm::util;
- urpm::util::copy($in || $_, ref($options) ? $options->{dir} : $options)
+ urpm::util::copy($_, ref($options) ? $options->{dir} : $options)
or die N("copy failed");
propagate_sync_callback($options, 'end', $_);
}