Mageia Bugzilla – Attachment 5817 Details for
Bug 8605
rpmlint gives false warnings when %setup_compile_flags is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
rpmlint-1.5-mga-fix_setup_compile_flags.patch
rpmlint-1.5-mga-fix_setup_compile_flags.patch (text/plain), 783 bytes, created by
Richard Houser
on 2015-01-16 07:18:27 CET
(
hide
)
Description:
rpmlint-1.5-mga-fix_setup_compile_flags.patch
Filename:
MIME Type:
Creator:
Richard Houser
Created:
2015-01-16 07:18:27 CET
Size:
783 bytes
patch
obsolete
>diff -uNr rpmlint-1.5/SpecCheck.py rpmlint-1.5/SpecCheck.py >--- rpmlint-1.5/SpecCheck.py 2015-01-12 02:22:25.804421718 -0500 >+++ rpmlint-1.5/SpecCheck.py 2015-01-12 02:44:42.299678640 -0500 >@@ -97,6 +97,7 @@ > > compop_regex = re.compile('[<>=]') > >+setup_regex = re.compile(r'\s*%setup\b') > setup_q_regex = re.compile(' -[A-Za-z]*q') > setup_t_regex = re.compile(' -[A-Za-z]*T') > setup_ab_regex = re.compile(' -[A-Za-z]*[ab]') >@@ -256,7 +257,7 @@ > if if_regex.search(line): > if_depth = if_depth + 1 > >- if line.startswith('%setup'): >+ if setup_regex.match(line): > if not setup_q_regex.search(line): > # Don't warn if there's a -T without -a or -b > if setup_t_regex.search(line):
diff -uNr rpmlint-1.5/SpecCheck.py rpmlint-1.5/SpecCheck.py --- rpmlint-1.5/SpecCheck.py 2015-01-12 02:22:25.804421718 -0500 +++ rpmlint-1.5/SpecCheck.py 2015-01-12 02:44:42.299678640 -0500 @@ -97,6 +97,7 @@ compop_regex = re.compile('[<>=]') +setup_regex = re.compile(r'\s*%setup\b') setup_q_regex = re.compile(' -[A-Za-z]*q') setup_t_regex = re.compile(' -[A-Za-z]*T') setup_ab_regex = re.compile(' -[A-Za-z]*[ab]') @@ -256,7 +257,7 @@ if if_regex.search(line): if_depth = if_depth + 1 - if line.startswith('%setup'): + if setup_regex.match(line): if not setup_q_regex.search(line): # Don't warn if there's a -T without -a or -b if setup_t_regex.search(line):
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8605
:
5802
|
5803
| 5817 |
5818