summaryrefslogtreecommitdiffstats
path: root/mgagnome
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2014-07-04 16:04:36 +0200
committerOlav Vitters <olav@vitters.nl>2014-07-04 16:04:36 +0200
commit7aed31d773568aa87bf11060e1db176a1190a0db (patch)
tree61495094115c24127499b141a871f77eae3294c3 /mgagnome
parenta6ee305b16eab78cb77688b16983872498716bdf (diff)
downloadmgagnome-7aed31d773568aa87bf11060e1db176a1190a0db.tar
mgagnome-7aed31d773568aa87bf11060e1db176a1190a0db.tar.gz
mgagnome-7aed31d773568aa87bf11060e1db176a1190a0db.tar.bz2
mgagnome-7aed31d773568aa87bf11060e1db176a1190a0db.tar.xz
mgagnome-7aed31d773568aa87bf11060e1db176a1190a0db.zip
remove empty keeppre and keeppost regexp groups
Diffstat (limited to 'mgagnome')
-rwxr-xr-xmgagnome4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgagnome b/mgagnome
index 1145575..0aa1548 100755
--- a/mgagnome
+++ b/mgagnome
@@ -385,8 +385,8 @@ class SpecFile(object):
re_clean_spec = [
# remove %defattr
('remove defattr', re.compile(r'(?P<keeppre>^\%files[^\n]*\n)^\%defattr\(-, *root, *root(?:, *-)?\)\s*\n', re.MULTILINE + re.IGNORECASE)),
- ('remove cleaning buildroot in install', re.compile(r'(?P<keeppre>^\%install[^\n]*\n)' + re_rm_buildroot + r'\n?(?P<keeppost>)', re.MULTILINE + re.IGNORECASE)),
- ('remove clean section', re.compile(r'(?P<keeppre>)^\%clean[^\n]*\n' + re_rm_buildroot + r'\n*(?P<keeppost>^(?:\%files|\%post|\%preun))', re.MULTILINE + re.IGNORECASE))
+ ('remove cleaning buildroot in install', re.compile(r'(?P<keeppre>^\%install[^\n]*\n)' + re_rm_buildroot + r'\n?', re.MULTILINE + re.IGNORECASE)),
+ ('remove clean section', re.compile(r'^\%clean[^\n]*\n' + re_rm_buildroot + r'\n*(?P<keeppost>^(?:\%files|\%post|\%preun))', re.MULTILINE + re.IGNORECASE))
]
made_changes = False