summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-20 19:33:31 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-20 19:33:31 +0000
commit5e78b137831c5e717b2cf174ea81cc41d9ffe491 (patch)
tree14419a1e1b6b1ae80233dc285a54c5575f7ecac3 /mdkupdate
parentbdfedfaa972c79ee622328bda609764715085835 (diff)
downloadmgaonline-5e78b137831c5e717b2cf174ea81cc41d9ffe491.tar
mgaonline-5e78b137831c5e717b2cf174ea81cc41d9ffe491.tar.gz
mgaonline-5e78b137831c5e717b2cf174ea81cc41d9ffe491.tar.bz2
mgaonline-5e78b137831c5e717b2cf174ea81cc41d9ffe491.tar.xz
mgaonline-5e78b137831c5e717b2cf174ea81cc41d9ffe491.zip
(update_pkgs) consider all update media instead of only the old "update_source" one
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index 712b1055..169cb913 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -355,7 +355,7 @@ sub prepare_media {
sub update_pkgs {
my (@pkgs) = @_;
eval {
- system "/usr/sbin/urpmi", "--auto", "--media", "update_source", map { if_(/(.*)-[^-]*-[^-]*\.[^-.]*?\.rpm$/, $1) } @pkgs;
+ system "/usr/sbin/urpmi", "--auto", '--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;