summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-21 18:35:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-21 18:35:28 +0000
commit041901039275532d0834fa86e5516509c615728f (patch)
tree36a23853d9a54938e19136076e9a2294b9b50e10 /gurpmi2
parent50f1f0a9027dfcd3c67f49e31ad6ca8fdfe5a814 (diff)
downloadurpmi-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 'gurpmi2')
-rwxr-xr-xgurpmi25
1 files changed, 3 insertions, 2 deletions
diff --git a/gurpmi2 b/gurpmi2
index 323c73f7..62a12b17 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -15,6 +15,7 @@ use gurpmi;
use urpm::install;
use urpm::media;
use urpm::signature;
+use urpm::get_pkgs;
use Gtk2;
#- GUI globals
@@ -210,7 +211,7 @@ sub do_install_2 () {
sub do_install_3 () {
wait_label(N("Package installation..."));
- my ($local_sources, $list) = $urpm->get_source_packages($state->{selected});
+ my ($local_sources, $list) = urpm::get_pkgs::selected2list($urpm, $state->{selected});
$local_sources || $list or $urpm->{fatal}(3, N("unable to get source packages, aborting"));
my %sources = %$local_sources;
my %error_sources;
@@ -240,7 +241,7 @@ sub do_install_3 () {
foreach my $set (@{$state->{transaction} || []}) {
my (@transaction_list, %transaction_sources);
urpm::install::prepare_transaction($urpm, $set, $list, \%sources, \@transaction_list, \%transaction_sources);
- $urpm->download_packages_of_distant_media(
+ urpm::get_pkgs::download_packages_of_distant_media($urpm,
\@transaction_list,
\%transaction_sources,
\%error_sources,