[dh-r] 13/43: Improve pkg (op version) regex

Gordon Ball chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:32 UTC 2016


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

chronitis-guest pushed a commit to branch master
in repository dh-r.

commit bd796c6e0e539bf95a031b4ed227b26313938f17
Author: Gordon Ball <gordon at chronitis.net>
Date:   Sun Sep 4 12:34:33 2016 +0200

    Improve pkg (op version) regex
---
 dh/R.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dh/R.pm b/dh/R.pm
index 1c003a7..660b982 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -46,7 +46,7 @@ sub parse_depends {
     foreach my $dep (@text) {
         chomp $dep;
         # rely on the R version format being equivalent
-        $dep =~ /^(\w+)\s*(\(.*\))?$/;
+        $dep =~ /^(\w+)\s*(\([^()]*\))?$/;
         my $pkg = lc $1;
         my $vers = $2;
         if ($pkg eq "r") {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dh-r.git



More information about the debian-science-commits mailing list