summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r--urpm/main_loop.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index fdcff529..6c39759c 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -94,10 +94,15 @@ sub download_packages {
join("\n", map { " $_->[0]" } @bad));
}
}
+
(\@error_sources, \@msgs);
}
-if ($urpm->{options}{'download-all'}) {
+if (exists $urpm->{options}{'download-all'}) {
+ if ($urpm->{options}{'download-all'}) {
+ $urpm->{cachedir} = $urpm->{'urpmi-root'}.$urpm->{options}{'download-all'};
+ urpm::init_cache_dir($urpm, $urpm->{cachedir});
+ }
my (undef, $available) = urpm::sys::df("$urpm->{cachedir}/rpms");
if (!$urpm->{options}{ignoresize}) {