[libconfig-model-dpkg-perl] 03/04: fix parse of 'foo|bar' dependency (Closes: #861061)

dod at debian.org dod at debian.org
Wed Apr 26 15:46:28 UTC 2017


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 edf41cbcca41b9770e089e2c378904f734d6e90b
Author: Dominique Dumont <dod at debian.org>
Date:   Wed Apr 26 17:22:48 2017 +0200

    fix parse of 'foo|bar' dependency (Closes: #861061)
---
 lib/Config/Model/Dpkg/Dependency.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Config/Model/Dpkg/Dependency.pm b/lib/Config/Model/Dpkg/Dependency.pm
index 346b3cb..b8a8d06 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -248,7 +248,7 @@ arch_restriction: '[' osarch(s) ']'
 
 dep_version: '(' oper version ')' { $return = [ $item{oper}, $item{version} ] ;}
 
-pkg_name: /[a-z0-9][a-z0-9\+\-\.]+(?=\s|\Z|\(|\[)/
+pkg_name: /[a-z0-9][a-z0-9\+\-\.]+(?=[\s([|]|\Z)/
     | /\S+/ { $add_error->("bad package name", $item[1]) ;}
 
 oper: '<<' | '<=' | '=' | '>=' | '>>'

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