diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-22 19:23:29 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-22 19:23:29 -0400 |
commit | 412d5d42faab3dfc59d498ff538a9d5788adeac3 (patch) | |
tree | 14501c664f6ccd0b0846e2546953233571214c51 /Debian | |
parent | 37008214d5e3344f6e77ba9096e1c40f4748f70c (diff) |
dh_listpackages: Do not display warnings if options cause no packages to be listed.
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Dh_Getopt.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm index 257fe649..e4f3e471 100644 --- a/Debian/Debhelper/Dh_Getopt.pm +++ b/Debian/Debhelper/Dh_Getopt.pm @@ -236,7 +236,9 @@ sub parseopts { if ($dh{DOINDEP} || $dh{DOARCH}) { # User specified that all arch (in)dep package be # built, and there are none of that type. - warning("You asked that all arch in(dep) packages be built, but there are none of that type."); + if (! $dh{BLOCK_NOOP_WARNINGS}) { + warning("You asked that all arch in(dep) packages be built, but there are none of that type."); + } exit(0); } push @{$dh{DOPACKAGES}},getpackages("both"); @@ -263,7 +265,9 @@ sub parseopts { @{$dh{DOPACKAGES}}=@package_list; if (! defined $dh{DOPACKAGES} || ! @{$dh{DOPACKAGES}}) { - warning("No packages to build."); + if (! $dh{BLOCK_NOOP_WARNINGS}) { + warning("No packages to build."); + } exit(0); } |