[libconfig-model-dpkg-perl] 02/03: skip comments in debian/series files (Closes: #725147)

dod at debian.org dod at debian.org
Sat Oct 5 10:34:40 UTC 2013


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 6c6ccd85c5347218d96b65227560b497a9c477b6
Author: Dominique Dumont <dod at debian.org>
Date:   Sat Oct 5 12:34:08 2013 +0200

    skip comments in debian/series files (Closes: #725147)
---
 lib/Config/Model/Backend/Dpkg.pm |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Config/Model/Backend/Dpkg.pm b/lib/Config/Model/Backend/Dpkg.pm
index 1bd8f41..7001b53 100644
--- a/lib/Config/Model/Backend/Dpkg.pm
+++ b/lib/Config/Model/Backend/Dpkg.pm
@@ -46,6 +46,7 @@ sub read_patch_series {
     # trigger element creation to read patch file_path
     foreach my $pname ( $ser_io->getlines ) {
         chomp $pname;
+		$pname =~ s/#.*//; # skip comment
         next unless $pname =~ /\w/;    # skip empty lines
         my $obj = $hash->fetch_with_id($pname);
         $obj->init;

-- 
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