diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-04-03 15:42:30 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-04-03 15:42:30 +0000 |
commit | 093502ca87a557a9da8d1138eb09c0c88725bb5c (patch) | |
tree | d0b7b76cf161cbeaef65b87c30527a85bd4333f2 /mdkupdate | |
parent | 9ae113e98f56c00881a25576e73c1fe9e0c75fda (diff) | |
download | mgaonline-093502ca87a557a9da8d1138eb09c0c88725bb5c.tar mgaonline-093502ca87a557a9da8d1138eb09c0c88725bb5c.tar.gz mgaonline-093502ca87a557a9da8d1138eb09c0c88725bb5c.tar.bz2 mgaonline-093502ca87a557a9da8d1138eb09c0c88725bb5c.tar.xz mgaonline-093502ca87a557a9da8d1138eb09c0c88725bb5c.zip |
(update_pkgs) with new scheme, we got a list of .rpm names. process this list as needed for urpmi (aka keep only package names)
Diffstat (limited to 'mdkupdate')
-rwxr-xr-x | mdkupdate | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -329,7 +329,7 @@ sub prepare_media { sub update_pkgs { @_ or return; eval { - system "/usr/sbin/urpmi", "--auto", "--media", "update_source", map { /^(.*)\.rpm$/ && $1 } @_; + system "/usr/sbin/urpmi", "--auto", "--media", "update_source", map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @_; $? == 0 or die N("Unable to update packages from update_source medium.\n"); }; $@ and output_p($logfile, "[mdkupdate] Error 99: $@"), return 0; |