From 7a6eb0514640f4174fc4cbeca00f950d98e9df78 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Sun, 6 Jul 2014 14:20:45 +0200 Subject: add another way to remove the buildroot --- mgagnome | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mgagnome b/mgagnome index 8c8e948..7508427 100755 --- a/mgagnome +++ b/mgagnome @@ -381,7 +381,7 @@ class SpecFile(object): return self._sources_and_patches(flag=1) def clean_spec(self): - re_rm_buildroot = r'^(?:rm|\%\{__rm\}) *(?:-rf|-rf|-r) *(?:\%buildroot|\%\{buildroot\}|\$RPM_BUILDROOT|\$RPM_BUILD_ROOT) *\n' + re_rm_buildroot = r'^(?:rm|\%\{__rm\}) *(?:-rf|-rf|-r) *(?:\%buildroot|\%\{buildroot\}|\$RPM_BUILDROOT|\$RPM_BUILD_ROOT|\$\{RPM_BUILD_ROOT\}) *\n' re_clean_spec = [ # remove %defattr ('remove defattr', re.compile(r'(?P^\%files[^\n]*\n)^\%defattr\s*\(-, *root, *root(?:, *-)?\)\s*\n', re.MULTILINE + re.IGNORECASE)), -- cgit v1.2.1