summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-02 11:42:39 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-02 11:42:39 +0000
commit3229471e071f7f33020b7ea32cb286c260b6c2d6 (patch)
tree2f8cdae9bb22bc94885615b0b0ea8786f31a551b
parentf35dc310ab251245afa9a864e2f1d30d22937595 (diff)
downloadmgaonline-3229471e071f7f33020b7ea32cb286c260b6c2d6.tar
mgaonline-3229471e071f7f33020b7ea32cb286c260b6c2d6.tar.gz
mgaonline-3229471e071f7f33020b7ea32cb286c260b6c2d6.tar.bz2
mgaonline-3229471e071f7f33020b7ea32cb286c260b6c2d6.tar.xz
mgaonline-3229471e071f7f33020b7ea32cb286c260b6c2d6.zip
(install_pkgs) update all package from media for bundles
-rwxr-xr-xmdkupdate6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 3398ab5d..25b734cd 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -148,7 +148,7 @@ if (!$bundle) {
add_media($media, $_, 'hdlist.cz', '') foreach keys %$mirrors;
$bundle =~ s/\.rpm$//;
push(@bundles, $bundle);
- install_pkgs($in, \@bundles, $media);
+ install_pkgs($in, \@bundles, $media, { is_bundle => 1 });
}
}
@@ -177,10 +177,12 @@ sub ask_pkgs {
}
sub install_pkgs {
- my ($in, $choosed, $media_name) = @_;
+ my ($in, $choosed, $media_name, $o_options) = @_;
+ $o_options ||= {};
my $w = $in->wait_message(N("Please wait"), N("Installing packages ...\n"));
eval {
system "/usr/sbin/urpmi", "--auto", "--media", $media_name, @$choosed;
+ system "/usr/sbin/urpmi", "--auto-select", "--media", $media_name if $o_options->{is_bundle};
$? == 0 or die N("Unable to update packages from update_source medium.\n");
};
undef $w;