Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
-
52e47fd6
by Maytham Alsudany at 2025-03-28T16:30:58+00:00
3 changed files:
- lib/Lintian/Util.pm
- t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/debian/copyright
- + t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/folder/another-file
Changes:
... | ... | @@ -400,6 +400,7 @@ purpose. No more directly having to access module variables either. |
400 | 400 | |
401 | 401 | sub match_glob {
|
402 | 402 | my ($glob, @things_to_test) = @_;
|
403 | + $glob =~ s{^\./}{}; # Normalize file path, remove leading "./"
|
|
403 | 404 | my $re = $rw->convert($glob);
|
404 | 405 | |
405 | 406 | return grep { /^$re\z/ } @things_to_test;
|
... | ... | @@ -41,3 +41,8 @@ Files: rare-filenames/01-file-with-(something-in-parenthesis).png |
41 | 41 | Copyright: 2014, somebody1
|
42 | 42 | License: mylicense-5
|
43 | 43 | Fixme
|
44 | + |
|
45 | +Files: ./folder/another-file
|
|
46 | +Copyright: 2015, somebody1
|
|
47 | +License: mylicense-6
|
|
48 | + Fixme |