summaryrefslogtreecommitdiffstats
path: root/bin/guards.in
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2014-02-11 10:13:52 +0100
committerJean Delvare <jdelvare@suse.de>2015-04-24 17:00:08 +0200
commit26e4fa949ad966863aed9245e42cf36f66820e8d (patch)
tree643c7cdfadbe327d4701134b4146991130260ddc /bin/guards.in
parent996315aeb9e6ec7b178e044156e5ba284a5860e2 (diff)
downloadquilt-26e4fa949ad966863aed9245e42cf36f66820e8d.tar.gz
guards: Report which config file has problem in --check mode
Diffstat (limited to 'bin/guards.in')
-rw-r--r--bin/guards.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/guards.in b/bin/guards.in
index 529cf52..67b84ff 100644
--- a/bin/guards.in
+++ b/bin/guards.in
@@ -181,11 +181,17 @@ if ($check) {
next if $ref == 1;
if ($ref == 0) {
- print "Unused: $file\n" if $ref == 0;
+ if ($config eq '-') {
+ print "Unused: $file\n";
+ } else {
+ print "Not in $config: $file\n";
+ }
$problems++;
}
if ($ref > 1) {
- print "Warning: multiple uses: $file\n" if $ref > 1;
+ print "Warning: multiple uses";
+ print " in $config" if $config ne '-';
+ print ": $file\n";
# This is not an error if the entries are mutually exclusive...
}
}