[devscripts] 01/01: build-rdeps: add --no-meta option for use in scripts (Closes: #844327)
Paul Wise
pabs at moszumanska.debian.org
Tue Nov 15 03:12:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
pabs pushed a commit to branch master
in repository devscripts.
commit 07fa7db5385d8eb5bacafeb9c947ede6cc85e5e7
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date: Mon Nov 14 14:44:26 2016 +0100
build-rdeps: add --no-meta option for use in scripts (Closes: #844327)
---
debian/changelog | 4 ++++
scripts/build-rdeps.pl | 38 +++++++++++++++++++++++++++-----------
2 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index f16a4e0..2131ca6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -32,6 +32,10 @@ devscripts (2.16.9) UNRELEASED; urgency=medium
* uscan:
+ Fix a mention of the location of the upstream signing key (Closes: #842542)
+ [ Jochen Sprickerhof ]
+ * build-rdeps:
+ + add --no-meta option for use in scripts (Closes: #844327)
+
-- James McCoy <jamessan at debian.org> Sat, 01 Oct 2016 13:26:57 -0400
devscripts (2.16.8) unstable; urgency=medium
diff --git a/scripts/build-rdeps.pl b/scripts/build-rdeps.pl
index 6478a04..f1979da 100755
--- a/scripts/build-rdeps.pl
+++ b/scripts/build-rdeps.pl
@@ -96,6 +96,11 @@ Explicitly set the build architecture. The default is the value of
`dpkg-architecture -qDEB_BUILD_ARCH`. This option only works if dose-extra >=
4.0 is installed.
+=item B<--no-meta>
+
+Don't print meta information (header, counter). Making it easier to use in
+scripts.
+
=item B<-d>, B<--debug>
Run the debug mode
@@ -151,6 +156,7 @@ my @opt_exclude_components;
my $opt_buildarch;
my $opt_hostarch;
my $opt_without_ceve;
+my $opt_no_meta;
if (system('command -v grep-dctrl >/dev/null 2>&1')) {
die "$progname: Fatal error. grep-dctrl is not available.\nPlease install the 'dctrl-tools' package.\n";
@@ -179,6 +185,7 @@ Options:
(needs root privileges)
-s, --sudo Use sudo when running apt-get update
(has no effect when -u is omitted)
+ --no-meta Don't print meta information
-d, --debug Enable the debug mode
-m, --print-maintainer Print the maintainer information (experimental)
--distribution distribution Select a distribution to search for build-depends
@@ -373,11 +380,13 @@ sub findreversebuilddeps {
}
}
- if ($count == 0) {
- print "No reverse build-depends found for $package.\n\n"
- }
- else {
- print "\nFound a total of $count reverse build-depend(s) for $package.\n\n";
+ if (!$opt_no_meta) {
+ if ($count == 0) {
+ print "No reverse build-depends found for $package.\n\n"
+ }
+ else {
+ print "\nFound a total of $count reverse build-depend(s) for $package.\n\n";
+ }
}
}
@@ -398,6 +407,7 @@ GetOptions(
# once dose-ceve has a
# --deb-profiles option
"old" => \$opt_without_ceve,
+ "no-meta" => \$opt_no_meta,
"d|debug" => \$opt_debug,
"h|help" => sub { usage; },
"v|version" => sub { version; }
@@ -486,20 +496,26 @@ if (!@source_files) {
foreach my $source_file (@source_files) {
if ($source_file =~ /main/) {
- print "Reverse Build-depends in main:\n";
- print "------------------------------\n\n";
+ if (!$opt_no_meta) {
+ print "Reverse Build-depends in main:\n";
+ print "------------------------------\n\n";
+ }
findreversebuilddeps($package, "$sources_path/$source_file");
}
if ($source_file =~ /contrib/) {
- print "Reverse Build-depends in contrib:\n";
- print "---------------------------------\n\n";
+ if (!$opt_no_meta) {
+ print "Reverse Build-depends in contrib:\n";
+ print "---------------------------------\n\n";
+ }
findreversebuilddeps($package, "$sources_path/$source_file");
}
if ($source_file =~ /non-free/) {
- print "Reverse Build-depends in non-free:\n";
- print "----------------------------------\n\n";
+ if (!$opt_no_meta) {
+ print "Reverse Build-depends in non-free:\n";
+ print "----------------------------------\n\n";
+ }
findreversebuilddeps($package, "$sources_path/$source_file");
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list