summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-15 14:54:04 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-15 14:54:04 +0000
commit7a8a0618bf454816fd6b589ab680c4ce4c3956c2 (patch)
tree07db025d179b4983de02888262b8a506d4e8b4db
parent85e5ec688cacfe714d48a420044883eff9176f38 (diff)
downloadmgaonline-7a8a0618bf454816fd6b589ab680c4ce4c3956c2.tar
mgaonline-7a8a0618bf454816fd6b589ab680c4ce4c3956c2.tar.gz
mgaonline-7a8a0618bf454816fd6b589ab680c4ce4c3956c2.tar.bz2
mgaonline-7a8a0618bf454816fd6b589ab680c4ce4c3956c2.tar.xz
mgaonline-7a8a0618bf454816fd6b589ab680c4ce4c3956c2.zip
(silentCheck) update media in chroot when using --urpmi-root
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index ed06d1cb..ed2daf6b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o update media in chroot when using --urpmi-root
+
Version 2.61 - 15 October 2008
- mdkapplet-upgrade-helper
diff --git a/mdkapplet b/mdkapplet
index dd508ad8..abe99543 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -447,14 +447,14 @@ sub silentCheck() {
}
$exit->('locked') if $will_not_update_media;
- if (!run_program::raw({ sensitive_arguments => 1 }, 'urpmi.update', '--update')) {
+ if (!run_program::raw({ sensitive_arguments => 1 }, 'urpmi.update', '--update', if_($root, "--urpmi-root=$root"))) {
$exit->('error_updating') if $will_not_update_media;
}
# update inactive backport media:
my @inactive_backport_media = Rpmdrake::open_db::get_inactive_backport_media($urpm);
log::explanations("updating inactive backport media " . join(', ', @inactive_backport_media)) if @inactive_backport_media;
- run_program::run('urpmi.update', $_) foreach @inactive_backport_media;
+ run_program::run('urpmi.update', if_($root, "--urpmi-root=$root"), $_) foreach @inactive_backport_media;
require urpm::select;
require urpm::media;