[libconfig-model-dpkg-perl] 04/36: DpkgSyntax: trim traling white space from keys

dod at debian.org dod at debian.org
Sat Oct 17 16:27:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 6450c8eab2a63bdc6534d7934c824efe873b57f1
Author: Dominique Dumont <dod at debian.org>
Date:   Tue Sep 29 12:52:36 2015 +0200

    DpkgSyntax: trim traling white space from keys
---
 lib/Config/Model/Backend/DpkgSyntax.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Config/Model/Backend/DpkgSyntax.pm b/lib/Config/Model/Backend/DpkgSyntax.pm
index 8417a5f..83c9f59 100644
--- a/lib/Config/Model/Backend/DpkgSyntax.pm
+++ b/lib/Config/Model/Backend/DpkgSyntax.pm
@@ -56,6 +56,7 @@ sub parse_dpkg_lines {
         }
         elsif (/^([\w\-]+)\s*:/) {  # keyword: 
             my ($field,$text) = split /\s*:\s*/,$_,2 ;
+            $text =~ s/\s+$//;
             $key = $field ;
             $logger->trace("line $line_nb start new field $key with '$text'");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



More information about the Pkg-perl-cvs-commits mailing list