summaryrefslogtreecommitdiffstats
path: root/MDK/Common/System.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-09-06 12:55:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-09-06 12:55:38 +0000
commit9ed9ed46df24d5852327064d04da685eccfa4126 (patch)
treeac74fe42836c23b43443df5d58a59076fb2d3aed /MDK/Common/System.pm
parent8899e1d04e339081eb985e6ab0c441b1c26280d8 (diff)
downloadperl-MDK-Common-9ed9ed46df24d5852327064d04da685eccfa4126.tar
perl-MDK-Common-9ed9ed46df24d5852327064d04da685eccfa4126.tar.gz
perl-MDK-Common-9ed9ed46df24d5852327064d04da685eccfa4126.tar.bz2
perl-MDK-Common-9ed9ed46df24d5852327064d04da685eccfa4126.tar.xz
perl-MDK-Common-9ed9ed46df24d5852327064d04da685eccfa4126.zip
MDK::Common::System::update_gnomekderc: fix adding section when the file doesn't end with a cr
Diffstat (limited to 'MDK/Common/System.pm')
-rw-r--r--MDK/Common/System.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm
index f4c1491..dcf24a7 100644
--- a/MDK/Common/System.pm
+++ b/MDK/Common/System.pm
@@ -358,7 +358,8 @@ sub update_gnomekderc {
#- if category has not been found above.
if (%subst) {
- $s .= "[$category]\n";
+ chomp $s;
+ $s .= "\n[$category]\n";
$s .= "$_->[0]=$_->[1]\n" foreach values %subst;
}