summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-02-18 14:50:11 +0000
committerDaouda Lo <daouda@mandriva.com>2005-02-18 14:50:11 +0000
commit5930bd701060c43d08f4159027216343a2d1cb7e (patch)
tree88c54572f5a024f0d14a38bb5d25af8fb8ee9795
parent6d9606670226a03f9c8240fdd4b2a8123dc34e1b (diff)
downloadmgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar
mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar.gz
mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar.bz2
mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar.xz
mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.zip
- install packages
-rwxr-xr-xmdkupdate6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 8de76036..0f7ddb58 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -166,8 +166,10 @@ sub ask_pkgs {
}
sub install_pkgs {
my ($in, $choosed) = @_;
- print foreach @{$choosed};
- auto_install_rpms(@{$choosed});
+ eval {
+ system "/usr/sbin/urpmi", "--auto", "--media", "update_source", @$choosed;
+ $? == 0 or die N("Unable to update packages from update_source medium.\n");
+ };
}
sub get_updatable_pkgs() {
my $urpm = new urpm;