[dh-r] 31/43: Don't generate warnings for builtin R namespaces
Gordon Ball
chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:37 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 2ff4ea357f4471867c9048e4b2e309a0f7e5eaa7
Author: Gordon Ball <gordon at chronitis.net>
Date: Fri Sep 9 13:24:50 2016 +0200
Don't generate warnings for builtin R namespaces
---
dh/R.pm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dh/R.pm b/dh/R.pm
index 1e2d7cd..d64f0fb 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -69,7 +69,18 @@ sub parse_depends {
my @rdeps = deps_parse($rawtext)->get_deps();
my @deps;
+ # r namespaces included in r-base-core which we shouldn't try and
+ # generate dependencies for
+ my %builtins;
+ @builtins{qw/base compiler datasets grDevices graphics grid methods
+ parallel splines stats tcltk tools translations utils/} = ();
+
foreach my $d (@rdeps) {
+ if (exists $builtins{$d->{package}}) {
+ # ignore dependencies on built-in namespaces
+ next;
+ }
+
my $pkg = lc $d->{package};
my $vers = "";
if (length $d->{version}) {
--
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