summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-21 11:44:17 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-21 11:44:17 +0000
commite8fa3b6d8a52dd59c9b668f9e6486f42fe3f1899 (patch)
tree9088f016ff20ba762ae7ad5daeda51471757993a /mdkupdate
parent98d551044c034096143a19d0a064654ea263adb8 (diff)
downloadmgaonline-e8fa3b6d8a52dd59c9b668f9e6486f42fe3f1899.tar
mgaonline-e8fa3b6d8a52dd59c9b668f9e6486f42fe3f1899.tar.gz
mgaonline-e8fa3b6d8a52dd59c9b668f9e6486f42fe3f1899.tar.bz2
mgaonline-e8fa3b6d8a52dd59c9b668f9e6486f42fe3f1899.tar.xz
mgaonline-e8fa3b6d8a52dd59c9b668f9e6486f42fe3f1899.zip
(update_pkgs) it shouldn't matter with stable updates but let's live
on the safe side and prevent removing the whole system
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index a199e094..d3c8c39d 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -267,7 +267,7 @@ sub prepare_media {
sub update_pkgs {
my (@pkgs) = @_;
eval {
- system '/usr/sbin/urpmi', '--auto-update', '--auto', '--update', map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @pkgs;
+ system '/usr/sbin/urpmi', '--auto-update', '--auto', '--keep', '--update', map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @pkgs;
$? == 0 or die N("Unable to update packages from update_source medium.\n");
};
$@ and output_p($logfile, "[mdkupdate] Error 99: $@"), return 0;