summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-05-11 07:58:00 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-05-11 07:58:00 +0000
commit45629494838b89127b9adb434f6d3362671429b7 (patch)
tree6d5d1a027f10a896563e2cff8aacfd7b71c6afe6
parentf409b90b3772150a9a58c55124d162108d2ff4cc (diff)
downloadmgaonline-45629494838b89127b9adb434f6d3362671429b7.tar
mgaonline-45629494838b89127b9adb434f6d3362671429b7.tar.gz
mgaonline-45629494838b89127b9adb434f6d3362671429b7.tar.bz2
mgaonline-45629494838b89127b9adb434f6d3362671429b7.tar.xz
mgaonline-45629494838b89127b9adb434f6d3362671429b7.zip
(upgrade) updates logfile name to use upgraded version; fixed deprecated mktemp options (fixes #59200)
-rwxr-xr-xmdkapplet-upgrade-helper4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index c4e97b7f..bfeeff37 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -226,7 +226,9 @@ packages as well?)."))
{
# force PATH:
local $ENV{TMPDIR} = undef;
- $log_file = chomp_(`mktemp -u -p $ENV{HOME}/ gurpmi_upgrade_to_2009.0_XXXXXXXX`) . '.log';
+ my $log_template =
+ "gurpmi_upgrade_to_${new_distro_version}_XXXXXXXX.log";
+ $log_file = chomp_(`mktemp -u --tmpdir=$ENV{HOME}/ $log_template`);
log::explanations("logging gurpmi message in '$log_file'");
}