Make ifarch etc regexps stricter.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1757 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
parent
fa314667fd
commit
68b7a49e03
|
@ -44,9 +44,9 @@ rm_regex = re.compile('(^|\s)((.*/)?rm|%{?__rm}?) ')
|
|||
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+')
|
||||
if_regex = re.compile('%if\s+')
|
||||
endif_regex = re.compile('%endif\\b')
|
||||
ifarch_regex = re.compile('^\s*%ifn?arch\s')
|
||||
if_regex = re.compile('^\s*%if\s')
|
||||
endif_regex = re.compile('^\s*%endif\\b')
|
||||
biarch_package_regex = re.compile(DEFAULT_BIARCH_PACKAGES)
|
||||
hardcoded_lib_path_exceptions_regex = re.compile(Config.getOption('HardcodedLibPathExceptions', DEFAULT_HARDCODED_LIB_PATH_EXCEPTIONS))
|
||||
prereq_regex = re.compile('^PreReq(\(.*\))?:\s*(.+?)\s*$', re.IGNORECASE)
|
||||
|
|
Loading…
Reference in New Issue