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:

- lib/Lintian/Check/Archive/File/Name/Length.pm


Changes:

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



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

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


Reply via email to