[dh-r] 05/43: Allow leading whitespace in parse_depends
Gordon Ball
chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:29 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 55fe19773528bae4ce2e207b5f48efa62c868908
Author: Gordon Ball <gordon at chronitis.net>
Date: Thu Sep 1 16:56:16 2016 +0200
Allow leading whitespace in parse_depends
---
dh/R.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dh/R.pm b/dh/R.pm
index ef4cbdc..59949bb 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -39,7 +39,7 @@ sub parse_depends {
foreach my $dep (@text) {
chomp $dep;
# rely on the R version format being equivalent
- $dep =~ /^(\w+)\s*(\(.*\))?$/;
+ $dep =~ /^\s*(\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