Nilesh Patra pushed to branch master at lintian / lintian
Commits: 48d9e6fd by Nilesh Patra at 2024-05-06T22:55:35+05:30 [ci skip] Revert "Remove strict check for comma in "Origin" field in DEP3 header" Revert this until we find a good solution to validate these. This reverts commit a1805c7ab887cf6ed949b9dfe3fa271deb0eab9b. - - - - - 1 changed file: - lib/Lintian/Check/Debian/Patches/Dep3.pm Changes: ===================================== lib/Lintian/Check/Debian/Patches/Dep3.pm ===================================== @@ -80,16 +80,10 @@ sub visit_patched_files { # use last mention when present multiple times my $origin = $deb822->last_mention('Origin'); - if ($origin =~ /,/) { - my ($category, $origin_value) = split(m{\s*,\s*}, $origin, 2); - $category //= $EMPTY; - return - if ($origin_value =~ /^(?:http|https):\/\/|commit:/) - && any { $category eq $_ } qw(upstream backport); - } else { - $origin =~ s/\s//g; - return if $origin =~ (/^(?:http|https):\/\/|commit:/); - } + my ($category) = split(m{\s*,\s*}, $origin, 2); + $category //= $EMPTY; + return + if any { $category eq $_ } qw(upstream backport); $self->pointed_hint('patch-not-forwarded-upstream', $item->pointer) if $deb822->last_mention('Forwarded') eq 'no' View it on GitLab: https://salsa.debian.org/lintian/lintian/-/commit/48d9e6fddb5a2d6024bf578ba7a38d214e74913d -- View it on GitLab: https://salsa.debian.org/lintian/lintian/-/commit/48d9e6fddb5a2d6024bf578ba7a38d214e74913d You're receiving this email because of your account on salsa.debian.org.