Exclude calls to autoheader and makeinfo from the automake "maintainer mode"
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Jun 2008 10:53:58 +0000 (10:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Jun 2008 10:53:58 +0000 (10:53 -0000)
check (filter some false positives). Thanks to Flameeyes.

svn path=/main/trunk/; revision=10752

pym/portage/__init__.py

index b3c37d60db5562dbb0903d8b0f2410b98e71a0c8..3741685d87f97a4afecf37b0f67cc7775513c799 100644 (file)
@@ -4197,9 +4197,12 @@ def spawnebuild(mydo,actionmap,mysettings,debug,alwaysdep=0,logfile=None):
                                configure_opts_warn_re = re.compile(
                                        r'^configure: WARNING: Unrecognized options: .*')
                                am_maintainer_mode_re = re.compile(r'.*/missing --run .*')
+                               am_maintainer_mode_exclude_re = \
+                                       re.compile(r'.*/missing --run (autoheader|makeinfo)')
                                try:
                                        for line in f:
-                                               if am_maintainer_mode_re.search(line) is not None:
+                                               if am_maintainer_mode_re.search(line) is not None and \
+                                                       am_maintainer_mode_exclude_re.search(line) is None:
                                                        am_maintainer_mode.append(line.rstrip("\n"))
                                                if configure_opts_warn_re.match(line) is not None:
                                                        configure_opts_warn.append(line.rstrip("\n"))