summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-15 14:33:54 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-15 14:33:54 +0000
commit486ac034b1fc9427577b27de2a3b2af69749abc6 (patch)
tree495c3ab3c699ed97d3b3133220711f6f8efb3a22
parentb07d044f1a66a271a919be82c36d0fd20ccb7002 (diff)
downloadmgaonline-486ac034b1fc9427577b27de2a3b2af69749abc6.tar
mgaonline-486ac034b1fc9427577b27de2a3b2af69749abc6.tar.gz
mgaonline-486ac034b1fc9427577b27de2a3b2af69749abc6.tar.bz2
mgaonline-486ac034b1fc9427577b27de2a3b2af69749abc6.tar.xz
mgaonline-486ac034b1fc9427577b27de2a3b2af69749abc6.zip
(updade_media) split it out of upgrade() (needed for next commit)
-rwxr-xr-xmdkapplet-upgrade-helper5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index 37a3588d..a3d6db27 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -149,7 +149,7 @@ packages as well?)."))
log::explanations("adding media for new distribution failed");
log::explanations("restoringing urpmi configuration from $file");
cp_af($file, "$root/etc/urpmi/urpmi.cfg");
- run_program::run('urpmi.update', if_($root, '--urpmi-root', $root), '-a', '--nocheck');
+ update_media();
ugtk2::ask_warn(N("Error"),
N("Installation failed"),
N("Failure when adding medium"),
@@ -178,3 +178,6 @@ sub fork_gurpmi {
if_($root, "--urpmi-root=$root"), @_);
}
+sub update_media() {
+ run_program::run('urpmi.update', if_($root, '--urpmi-root', $root), '-a', '--nocheck');
+}