summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2011-05-28 19:04:47 +0000
committerThomas Backlund <tmb@mageia.org>2011-05-28 19:04:47 +0000
commitf8b449c246041741451739f3e748291460159abc (patch)
tree7324129feaf092392c09e69b328e24c6871a65f6
parentb8acd90b5f4d0735f22c101f91c057ba07e12b90 (diff)
downloadmgaonline-f8b449c246041741451739f3e748291460159abc.tar
mgaonline-f8b449c246041741451739f3e748291460159abc.tar.gz
mgaonline-f8b449c246041741451739f3e748291460159abc.tar.bz2
mgaonline-f8b449c246041741451739f3e748291460159abc.tar.xz
mgaonline-f8b449c246041741451739f3e748291460159abc.zip
dont pollute homedir with urpmi.cfg backup files
-rw-r--r--NEWS1
-rwxr-xr-xmgaapplet-upgrade-helper2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 43267036..9326b55a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
Version 2.77.28 - 28 May 2010, Thomas Backlund
- disable suggesting powerpack upgrade (mga #1153)
+- dont pollute homedir with urpmi.cfg backup files
Version 2.77.27 - 27 May 2010, Thierry Vignaud
diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper
index 13fb40ec..36581b3e 100755
--- a/mgaapplet-upgrade-helper
+++ b/mgaapplet-upgrade-helper
@@ -246,7 +246,7 @@ sub upgrade() {
run_program::raw({ detach => 1 }, 'xdg-screensaver', 'suspend', $xid);
my $_w = before_leaving { run_program::raw({ detach => 1 }, 'xdg-screensaver', 'resume', $xid) };
- my $file = "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000);
+ my $file = "$ENV{HOME}/.MgaOnline/urpmi.cfg.backup." . int(rand 100000);
log::explanations("backuping urpmi configuration in $file");
cp_af("$root/etc/urpmi/urpmi.cfg", $file);