diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-09-06 12:55:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-09-06 12:55:38 +0000 |
commit | 9ed9ed46df24d5852327064d04da685eccfa4126 (patch) | |
tree | ac74fe42836c23b43443df5d58a59076fb2d3aed | |
parent | 8899e1d04e339081eb985e6ab0c441b1c26280d8 (diff) | |
download | perl-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
-rw-r--r-- | MDK/Common/System.pm | 3 | ||||
-rw-r--r-- | 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 <pixel@mandrakesoft.com> 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 <pixel@mandrakesoft.com> 1.0.3-14mdk - no function "xxx undefined" when using "#-#" |