summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-14 00:41:48 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-14 00:41:48 +0000
commit660d4ad309fb40098f9cf6b0239275ce3be9d85c (patch)
tree8e3c762e54738676849ba12cb639f39ca040a7f1
parentcb635bd55418979cd7f62946cce4f03336e7a772 (diff)
downloadmgaonline-660d4ad309fb40098f9cf6b0239275ce3be9d85c.tar
mgaonline-660d4ad309fb40098f9cf6b0239275ce3be9d85c.tar.gz
mgaonline-660d4ad309fb40098f9cf6b0239275ce3be9d85c.tar.bz2
mgaonline-660d4ad309fb40098f9cf6b0239275ce3be9d85c.tar.xz
mgaonline-660d4ad309fb40098f9cf6b0239275ce3be9d85c.zip
(upgrade) log where is backuped urpmi.cfg
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet-upgrade-helper5
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index b19fdb91..f4053079 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@
o do not crash if image cannot be loaded (#44750)
o split upgrade code into mdkapplet-upgrade-helper:
* ask for root password earlier, before removing media (#44771)
+ * log where is backuped urpmi.cfg
* run up to 4 gurpmi passes if needed
Version 2.55 - 10 October 2008
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index fc203df4..f2579d72 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -111,8 +111,9 @@ sub upgrade_distro_congratulations() {
}
sub upgrade() {
- log::explanations("backuping urpmi configuration");
- cp_af("$root/etc/urpmi/urpmi.cfg", "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000));
+ my $file = "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000);
+ log::explanations("backuping urpmi configuration in $file");
+ cp_af("$root/etc/urpmi/urpmi.cfg", $file);
my $urpm = Rpmdrake::open_db::fast_open_urpmi_db();