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

[Git][lintian/lintian][master] Remove salsaci suffix for length test



Title: GitLab

Bastien Roucariès pushed to branch master at lintian / lintian

Commits:

  • ea398eb4
    by Bastien Roucariès at 2023-10-30T14:31:11+00:00
    Remove salsaci suffix for length test
    

1 changed file:

Changes:

  • lib/Lintian/Check/Archive/File/Name/Length.pm
    ... ... @@ -50,9 +50,12 @@ sub always {
    50 50
           if $self->processable->fields->declares('Auto-Built-Package');
    
    51 51
     
    
    52 52
         my $basename = basename($self->processable->path);
    
    53
    +    # remove salsaci suffix
    
    54
    +    my $nosalsabasename = $basename;
    
    55
    +    $nosalsabasename =~ s/[+]salsaci[+]\d+[+]\d+(_[[:alnum:]]+\.[[:alnum:]]+)$/$1/;
    
    53 56
     
    
    54 57
         my $adjusted_length
    
    55
    -      = length($basename)
    
    58
    +      = length($nosalsabasename)
    
    56 59
           - length($self->processable->architecture)
    
    57 60
           + $LONGEST_ARCHITECTURE;
    
    58 61
     
    


  • Reply to: