summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmgagnome3
1 files changed, 3 insertions, 0 deletions
diff --git a/mgagnome b/mgagnome
index 0b5e791..eee5a60 100755
--- a/mgagnome
+++ b/mgagnome
@@ -371,6 +371,7 @@ class SpecFile(object):
('keep library matching using two lines', r'\g<keeppre>\n\g<keeppre>.*', re.compile(r'^(?P<keeppre>%{_libdir}[^\n]+})$\n(?P=keeppre)\{,\.\*\}$', re.MULTILINE)),
('make use of autopatch', r'%autopatch -p1', re.compile(r'^%apply_patches$', re.MULTILINE)),
('change configure2_5x macro to configure', r'%configure', re.compile(r'^%configure2_5x\b', re.MULTILINE)),
+ ('change make macro to make_build', r'%make_build', re.compile(r'^%make\b', re.MULTILINE), True),
('change find_lang --with-help into --with-gnome', '\g<keeppre> --with-gnome\g<keeppost>', re.compile(r'^(?P<keeppre>\s*\%find_lang[^\\\n]+) --with-help(?P<keeppost>[^\\\n]*\n)', re.MULTILINE + re.IGNORECASE)),
('change find_lang remove duplicate with_gnome', None, re.compile(r'^(?P<keeppre>\%find_lang[^\\\n]+ --with-gnome) --with-gnome(?P<keeppost>[^\\\n]*\n)', re.MULTILINE + re.IGNORECASE)),
# Use new Python macros
@@ -1649,6 +1650,8 @@ def cmd_clean_spec_multi(args):
subprocess.call(cmd, cwd=os.path.expanduser(os.path.join(Downstream.PKGROOT, package)))
else:
# show the diff and undo all changes
+ if s.should_rebuild:
+ print("NOTICE: Package should be rebuilt")
print(s.changes)
s.ensure_no_local_changes(force=True)