diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-10-15 17:12:03 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-10-15 17:12:03 +0000 |
commit | 64f60e96cd8b895cfd908d030d5e6d482b53b98f (patch) | |
tree | c3c38c120ff99a6aa547f1bd410bf23e08b19f0e /urpm/main_loop.pm | |
parent | 6381a6079098697ddaba5ff6810a2e87658bca26 (diff) | |
download | urpmi-64f60e96cd8b895cfd908d030d5e6d482b53b98f.tar urpmi-64f60e96cd8b895cfd908d030d5e6d482b53b98f.tar.gz urpmi-64f60e96cd8b895cfd908d030d5e6d482b53b98f.tar.bz2 urpmi-64f60e96cd8b895cfd908d030d5e6d482b53b98f.tar.xz urpmi-64f60e96cd8b895cfd908d030d5e6d482b53b98f.zip |
allow to define the cache directory for RPMs when setting --download-all
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 7 |
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}) { |