From 0e9504d728392946473b498eb7b9856afc092523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 31 Mar 2010 17:35:51 +0000 Subject: [PATCH] Don't check for buildroot usage in comments (http://bugzilla.redhat.com/578390) git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1755 9bc8b190-ac0f-0410-8968-dc7d1f502856 --- SpecCheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpecCheck.py b/SpecCheck.py index 9aeb30c8..efe86b1b 100644 --- a/SpecCheck.py +++ b/SpecCheck.py @@ -41,7 +41,7 @@ packager_regex = re.compile('^Packager\s*:\s*([^\s]+)', re.IGNORECASE) noarch_regex = re.compile('^BuildArch(?:itectures)?\s*:\s*\\bnoarch\\b', re.IGNORECASE) make_check_regex = re.compile('(^|\s|%{?__)make}?\s+(check|test)') rm_regex = re.compile('(^|\s)((.*/)?rm|%{?__rm}?) ') -rpm_buildroot_regex = re.compile('(\\\*)\${?RPM_BUILD_ROOT}?|(%+){?buildroot}?') +rpm_buildroot_regex = re.compile('^[^#]*(?:(\\\*)\${?RPM_BUILD_ROOT}?|(%+){?buildroot}?)') configure_libdir_spec_regex = re.compile('ln |\./configure[^#]*--libdir=([^\s]+)[^#]*') lib_package_regex = re.compile('^%package.*\Wlib') ifarch_regex = re.compile('%ifn?arch\s+')