[dh-make-perl] 03/04: Debian::Dependency: add support for build profiles
gregor herrmann
gregoa at debian.org
Tue Jan 3 01:51:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository dh-make-perl.
commit b501183223331b6c71371b43989ab81506526ea8
Author: gregor herrmann <gregoa at debian.org>
Date: Tue Jan 3 02:45:40 2017 +0100
Debian::Dependency: add support for build profiles
(so called "restriction formulas") to the parse() function.
Thanks: David Bremner for the bug report.
Closes: #850000
---
lib/Debian/Dependency.pm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lib/Debian/Dependency.pm b/lib/Debian/Dependency.pm
index 2d2e5f5..66cb6cc 100644
--- a/lib/Debian/Dependency.pm
+++ b/lib/Debian/Dependency.pm
@@ -315,6 +315,16 @@ sub parse {
)+
\]
)?
+ (?: # "restriction formulas" (build profile) is optional
+ \s* # optional space
+ <
+ (?:
+ !? # negation is optional
+ [^\s>]+ # build profile name
+ (?:\s+|(?=>) ) # whitespace or end
+ )+
+ >
+ )* # can appear several times
$}x # done
)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/dh-make-perl.git
More information about the Pkg-perl-cvs-commits
mailing list