summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-03 15:42:30 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-03 15:42:30 +0000
commit093502ca87a557a9da8d1138eb09c0c88725bb5c (patch)
treed0b7b76cf161cbeaef65b87c30527a85bd4333f2
parent9ae113e98f56c00881a25576e73c1fe9e0c75fda (diff)
downloadmgaonline-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)
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index 8e2a6c06..d981ebc0 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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;