diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 18:35:28 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 18:35:28 +0000 |
commit | 041901039275532d0834fa86e5516509c615728f (patch) | |
tree | 36a23853d9a54938e19136076e9a2294b9b50e10 /urpmq | |
parent | 50f1f0a9027dfcd3c67f49e31ad6ca8fdfe5a814 (diff) | |
download | urpmi-041901039275532d0834fa86e5516509c615728f.tar urpmi-041901039275532d0834fa86e5516509c615728f.tar.gz urpmi-041901039275532d0834fa86e5516509c615728f.tar.bz2 urpmi-041901039275532d0834fa86e5516509c615728f.tar.xz urpmi-041901039275532d0834fa86e5516509c615728f.zip |
- move download_packages_of_distant_media() from urpm.pm to urpm::get_pkgs
- move urpm::get_source_packages() -> urpm::get_pkgs::selected2list()
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -28,6 +28,7 @@ use urpm::args; use urpm::msg; use urpm::sys; use urpm::media; +use urpm::get_pkgs; #- default options. $urpm::args::options = { use_provides => 1 }; @@ -311,7 +312,7 @@ if ($urpm::args::options{list_aliases}) { || $urpm::args::options{list_files} || $urpm::args::options{changelog}) { - my ($local_sources, $list) = $urpm->get_source_packages($state->{selected}); + my ($local_sources, $list) = urpm::get_pkgs::selected2list($urpm, $state->{selected}); if ($urpm::args::options{info} || $urpm::args::options{list_files} || $urpm::args::options{changelog} || $urpm::args::options{summary}) { @@ -343,7 +344,7 @@ if ($urpm::args::options{list_aliases}) { }; $packer->extract($tmp_header_dir, @headers); } elsif (!%downloads) { - $urpm->download_packages_of_distant_media($list, \%downloads, my $error = {}); + urpm::get_pkgs::download_packages_of_distant_media($urpm, $list, \%downloads, my $error = {}); warn "missing file $_\n" foreach values %$error; } } |