From 9ed9ed46df24d5852327064d04da685eccfa4126 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 Sep 2002 12:55:38 +0000 Subject: MDK::Common::System::update_gnomekderc: fix adding section when the file doesn't end with a cr --- MDK/Common/System.pm | 3 ++- perl-MDK-Common.spec | 5 ++++- 2 files changed, 6 insertions(+), 2 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; } diff --git a/perl-MDK-Common.spec b/perl-MDK-Common.spec index 97f71f1..39fe8f7 100644 --- a/perl-MDK-Common.spec +++ b/perl-MDK-Common.spec @@ -2,7 +2,7 @@ # do not change the version here, change in MDK/Common.pm.pl %define version THEVERSION -%define release 14mdk +%define release 15mdk Summary: Various simple functions Name: perl-MDK-Common @@ -50,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT # MODIFY IN THE CVS: cvs.mandrakesoft.com:/cooker soft/perl-MDK-Common %changelog +* Fri Sep 6 2002 Pixel 1.0.3-15mdk +- MDK::Common::System::update_gnomekderc: fix adding section when the file doesn't end with a cr + * Wed Aug 28 2002 Pixel 1.0.3-14mdk - no function "xxx undefined" when using "#-#" -- cgit v1.2.1