summaryrefslogtreecommitdiffstats
path: root/urpm.pm
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.pm
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.pm')
-rw-r--r--urpm.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index 5b907716..502c70c4 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -69,9 +69,8 @@ sub sync_webfetch {
push @{$files{$1}}, $_;
}
if ($files{removable} || $files{file}) {
- eval {
- sync_file($options, @{$files{removable} || []}, @{$files{file} || []});
- };
+ my @l = map { analyse_url__file_if_local($_) } @{$files{removable} || []}, @{$files{file} || []};
+ eval { sync_file($options, @l) };
$urpm->{fatal}(10, $@) if $@;
delete @files{qw(removable file)};
}