[dh-r] 36/43: Add some comments to fix-deps

Gordon Ball chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:38 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 18a6f70745cd8bb1085cdadc288c0708d2728168
Author: Gordon Ball <gordon at chronitis.net>
Date:   Thu Sep 15 11:13:07 2016 +0200

    Add some comments to fix-deps
---
 scripts/fix-deps.pm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/scripts/fix-deps.pm b/scripts/fix-deps.pm
index 08def15..baeab13 100644
--- a/scripts/fix-deps.pm
+++ b/scripts/fix-deps.pm
@@ -1,3 +1,13 @@
+#!/usr/bin/env perl
+
+# This script attempts to convert the dependencies of an existing R package
+# from using CDBS to use dh-r.
+# It should be run from the root of an R package, and will write a new
+# d/control file to stdout.
+# Note that this completely replaces the existing binary Depends, Recommends,
+# Suggests with substvar versions - if your package has dependencies which
+# are not either shlibs or R then they will be lost!
+
 use feature say;
 use strict;
 
@@ -9,7 +19,7 @@ my $src = $ctrl->get_source();
 my $bin = $ctrl->get_pkg_by_idx(1);
 
 
-$bin->{Depends} = Dpkg::Deps::deps_concat("\${R:Depends}", "\${misc:Depends}", "\${shlibs:Depends}");
+$bin->{Depends} = "\${R:Depends}, \${misc:Depends}, \${shlibs:Depends}";
 if (defined $bin->{Recommends}) {
     $bin->{Recommends} = "\${R:Recommends}";
 }

-- 
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