This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=12056af50df1bab7d524043aec5257df11186b17

commit 12056af50df1bab7d524043aec5257df11186b17
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Dec 25 21:36:11 2025 +0100

    dpkg-source: Warn when the Uploaders field contains the Maintainer
    
    This duplication, while not a fatal issue, is something unusual. The
    check has been performed by lintian, but as we are now validating
    these fields, it makes sense to perform this check as well.
---
 scripts/dpkg-source.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index 373708ddd..578fde6de 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -451,6 +451,10 @@ if ($options{opmode} =~ 
/^(build|print-format|(before|after)-build|commit)$/) {
     if (defined $fields->{'Uploaders'}) {
         my $uploaders = field_parse_uploaders($fields);
         $fields->{'Uploaders'} = $uploaders->as_string();
+
+        if (defined $maint && $uploaders->contains($maint)) {
+            warning(g_('%f field contains the maintainer address'), 
'Uploaders');
+        }
     }
 
     $fields->{'Binary'} = join(', ', @binarypackages);

-- 
Dpkg.Org's dpkg

Reply via email to