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


Commits:
dce10050 by Nilesh Patra at 2026-02-22T16:26:59+00:00
Do not raise lintian error for missing targets when .DEFAULT is specified 
(Closes: #983539)

.DEFAULT is an alias could be treated as an alias for "%". This is a
rule that runs when no other rules apply.

- - - - -


1 changed file:

- lib/Lintian/Check/Debian/Rules.pm


Changes:

=====================================
lib/Lintian/Check/Debian/Rules.pm
=====================================
@@ -479,6 +479,8 @@ sub source {
                     for my $rulebypolicy (keys %TAG_FOR_POLICY_TARGET) {
                         $seen{$rulebypolicy}++ if $rulebypolicy =~ m/$pattern/;
                     }
+                } elsif($target eq '.DEFAULT') {
+                    $seen{$_}++ for keys %TAG_FOR_POLICY_TARGET;
                 } else {
                     # Is it $(VAR) ?
                     if ($target =~ m/^\$[\(\{]([^\)\}]++)[\)\}]$/) {



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

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


Reply via email to