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

Bug#535432: lintian: doesn't detech that dh is being used when an environment variable is set

Package: lintian
Version: 2.2.12
Severity: normal
Tags: patch

here's an example rules file where this bug happens:
        TEST_AUTHOR=1 dh $@

lintian then tells me build-depends-without-arch-dep for debhelper.

here's an attempt at a patch, the regexp isn't very good, it will
probably need to be improved by the person who commits it. but it
fixes my problem.

diff --git a/checks/fields b/checks/fields
index 20af81a..d71ea0f 100644
--- a/checks/fields
+++ b/checks/fields
@@ -194,7 +194,7 @@ my @RULE_CLEAN_ALLOWED = (
 # should bypass the build-depends-without-arch-dep check completely.
-       qr'^\s+dh\s+'
+       qr'^(\s+[a-zA-Z0-9_]+=.*)*\s+dh\s+'
 # Mapping of package names to section names

Ryan Niebur

Attachment: signature.asc
Description: Digital signature

Reply to: