[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] Remove "./" from d/copyright glob before testing if it matches anything



Title: GitLab

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

Commits:

  • 52e47fd6
    by Maytham Alsudany at 2025-03-28T16:30:58+00:00
    Remove "./" from d/copyright glob before testing if it matches anything
    
    Closes: #1008479
    

3 changed files:

Changes:

  • lib/Lintian/Util.pm
    ... ... @@ -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;
    

  • t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/debian/copyright
    ... ... @@ -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

  • t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/folder/another-file


  • Reply to: