summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-05-04 14:31:06 +0200
committerOlav Vitters <olav@vitters.nl>2020-05-04 14:31:06 +0200
commitbbcd105d0dca72ad86b81fe234027aad228bd5a9 (patch)
treecc80672788a014f1ea5011698d6a9facc5022893
parentf98c8e3b5490958646f5c487173c2880e6c8b9cb (diff)
downloadmgagnome-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-xmgagnome8
1 files changed, 4 insertions, 4 deletions
diff --git a/mgagnome b/mgagnome
index 619e759..622b1ab 100755
--- a/mgagnome
+++ b/mgagnome
@@ -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
#(