diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-02-18 14:50:11 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-02-18 14:50:11 +0000 |
commit | 5930bd701060c43d08f4159027216343a2d1cb7e (patch) | |
tree | 88c54572f5a024f0d14a38bb5d25af8fb8ee9795 | |
parent | 6d9606670226a03f9c8240fdd4b2a8123dc34e1b (diff) | |
download | mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar.gz mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar.bz2 mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.tar.xz mgaonline-5930bd701060c43d08f4159027216343a2d1cb7e.zip |
- install packages
-rwxr-xr-x | mdkupdate | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |