diff options
author | Olav Vitters <olav@vitters.nl> | 2020-05-04 14:31:06 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-05-04 14:31:06 +0200 |
commit | bbcd105d0dca72ad86b81fe234027aad228bd5a9 (patch) | |
tree | cc80672788a014f1ea5011698d6a9facc5022893 | |
parent | f98c8e3b5490958646f5c487173c2880e6c8b9cb (diff) | |
download | mgagnome-bbcd105d0dca72ad86b81fe234027aad228bd5a9.tar mgagnome-bbcd105d0dca72ad86b81fe234027aad228bd5a9.tar.gz mgagnome-bbcd105d0dca72ad86b81fe234027aad228bd5a9.tar.bz2 mgagnome-bbcd105d0dca72ad86b81fe234027aad228bd5a9.tar.xz mgagnome-bbcd105d0dca72ad86b81fe234027aad228bd5a9.zip |
clean-spec: also allow initial spaces/tabs in make_build macro cleanup
-rwxr-xr-x | mgagnome | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -532,13 +532,13 @@ class SpecFile(): ), ( 'change make macro to make_build', - r'%make_build', - re.compile(r'^%make\b', re.MULTILINE) + r'\g<keeppre>%make_build', + re.compile(r'^(?P<keeppre>[ \t]*)%make\b', re.MULTILINE) ), ( 'make_build already implies V=1 and VERBOSE=1, remove these', - r'%make_build', - re.compile(r'^%make_build(?:[ \t]+(?:V=1|VERBOSE=1))+\b', re.MULTILINE) + r'\g<keeppre>%make_build', + re.compile(r'^(?P<keeppre>[ \t]*)%make_build(?:[ \t]+(?:V=1|VERBOSE=1))+\b', re.MULTILINE) ), # Can have side-effects, disable for now #( |