Nilesh Patra pushed to branch master at lintian / lintian


Commits:
ceccaac6 by Nilesh Patra at 2026-05-22T17:05:23+05:30
Update "package-does-not-use-debhelper" to use pointed hint to the line of 
`Build-Driver` in d/control for cases where `Build-Driver` is not `debian-rules`

- - - - -


2 changed files:

- lib/Lintian/Check/Debhelper.pm
- t/recipes/checks/debhelper/package-uses-debputy-build-driver/eval/hints


Changes:

=====================================
lib/Lintian/Check/Debhelper.pm
=====================================
@@ -484,12 +484,14 @@ sub source {
 
     if (defined $build_driver && $build_driver ne 'debian-rules') {
         my @systems = sort keys %build_systems;
+        my $bdrv_position = $source_fields->position($bdrv);
         $self->pointed_hint(
             'debian-build-system',
             $dcontrol->item->pointer,
             join(', ', @systems)
         );
-        $self->hint('package-does-not-use-debhelper');
+        $self->pointed_hint('package-does-not-use-debhelper',
+            $dcontrol->item->pointer($bdrv_position));
         return;
     } elsif (%build_systems) {
         my @systems = sort keys %build_systems;


=====================================
t/recipes/checks/debhelper/package-uses-debputy-build-driver/eval/hints
=====================================
@@ -1,2 +1,2 @@
-package-uses-debputy-build-driver (source): package-does-not-use-debhelper
+package-uses-debputy-build-driver (source): package-does-not-use-debhelper 
[debian/control:7]
 package-uses-debputy-build-driver (source): debian-build-system debputy 
[debian/control]



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

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/ceccaac670c5f4590343c7b7411e949bb86bc289
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


Reply via email to