Louis-Philippe Véronneau pushed to branch master at lintian / lintian


Commits:
c395dd75 by Louis-Philippe Véronneau at 2025-06-27T20:18:30+00:00
Make lintian-explain-tags exit with an error message when asked about a
non-existing tag.

Closes: #1042436

- - - - -


1 changed file:

- bin/lintian-explain-tags


Changes:

=====================================
bin/lintian-explain-tags
=====================================
@@ -136,7 +136,9 @@ my @sorted = sort { lc($a->name) cmp lc($b->name) } 
@available;
 
 $output->describe_tags($profile->data, \@sorted, $TERMINAL_WIDTH);
 
-exit any { !defined $profile->get_tag($_) } @selected;
+if ( any { !defined $profile->get_tag($_) } @selected) {
+    die "The tag '@selected' does not exist\n";
+}
 
 sub show_version {
     say encode_utf8("$NEW_PROGRAM_NAME v$ENV{LINTIAN_VERSION}");



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/c395dd75ed961f220db7ffd3bd6d5f9d90e10ad4

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/c395dd75ed961f220db7ffd3bd6d5f9d90e10ad4
You're receiving this email because of your account on salsa.debian.org.


Reply via email to