[dh-r] 16/43: Remove newlines in dependency blocks
Gordon Ball
chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:33 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 49b12efb9a6dc33d34369ac80ca1f857b54e58d4
Author: Gordon Ball <gordon at chronitis.net>
Date: Mon Sep 5 21:25:05 2016 +0200
Remove newlines in dependency blocks
---
dh/R.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dh/R.pm b/dh/R.pm
index 08d449f..256d2d1 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -40,6 +40,9 @@ sub parse_depends {
foreach my $dep (@text) {
chomp $dep;
+
+ # clean up possible newline or tabs in the middle of dependencies
+ $dep =~ s/[\n\t]/ /g;
# rely on the R version format being equivalent
$dep =~ /^([\w.]+)\s*(\([^()]*\))?$/;
my $pkg = lc $1;
--
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