summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/urpm.pm b/urpm.pm
index 49878631..0048b9a6 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1328,13 +1328,9 @@ sub upload_source_packages {
}
}
}
- if (@distant_sources) {
- local *F;
- open F, "| wget -NP $urpm->{cachedir}/rpms -i -";
- foreach (@distant_sources) {
- print F "$_\n";
- }
- close F or $urpm->{error}("cannot get distant rpms files (maybe wget is missing?)");
+ foreach (@distant_sources) {
+ $urpm->{log}("retrieving [$_]");
+ system "wget", "-NP", "$urpm->{cachedir}/rpms", $_;
}
#- return the list of rpm file that have to be installed, they are all local now.