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 <gre...@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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to