[dh-r] 06/43: Hide stderr from dpkg-query
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 723a9a25d7047cf512ecabe56839938c302f700c
Author: Gordon Ball <gordon at chronitis.net>
Date: Thu Sep 1 16:57:29 2016 +0200
Hide stderr from dpkg-query
---
dh/R.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dh/R.pm b/dh/R.pm
index 59949bb..cbd9c01 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -49,10 +49,10 @@ sub parse_depends {
next;
}
- if (system("dpkg-query", "-W", "r-cran-$pkg") == 0) {
+ if (system("sh", "-c", "dpkg-query -W r-cran-$pkg 2>/dev/null") == 0) {
say "I: Using r-cran-$pkg for $field:$dep";
push (@deps, "r-cran-$pkg $vers");
- } elsif (system("dpkg-query", "-W", "r-bioc-$pkg") == 0) {
+ } elsif (system("sh", "-c", "dpkg-query -W r-bioc-$pkg 2>/dev/null") == 0) {
say "I: Using r-bioc-$pkg for $field:$dep";
push (@deps, "r-bioc-$pkg $vers");
} else {
--
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