--- pym/portage/__init__.py~ 2008-06-20 13:42:09.000000000 +0200 +++ pym/portage/__init__.py 2008-06-22 17:58:03.000000000 +0200 @@ -4194,15 +4194,25 @@ else: am_maintainer_mode = [] configure_opts_warn = [] + missing_inherit_env = [] + missing_inherit_ebuild = [] configure_opts_warn_re = re.compile( r'^configure: WARNING: Unrecognized options: .*') am_maintainer_mode_re = re.compile(r'.*/missing --run .*') + missing_inherit_env_re = re.compile( + r'.*temp/environment: .* command not found.*') + missing_inherit_ebuild_re = re.compile( + r'.*ebuild: .* command not found.*') try: for line in f: if am_maintainer_mode_re.search(line) is not 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")) + if missing_inherit_env_re.match(line) is not None: + missing_inherit_env.append(line.rstrip("\n")) + if missing_inherit_ebuild_re.match(line) is not None: + missing_inherit_ebuild.append(line.rstrip("\n")) finally: f.close() @@ -4236,6 +4246,26 @@ msg.append("") msg.extend("\t" + line for line in configure_opts_warn) _eqawarn(msg) + + if missing_inherit_env: + msg = ["QA Notice: Unrecognized command in ebuild:"] + msg.append("") + msg.extend("\t" + line for line in missing_inherit_env) + msg.append("") + msg.extend(wrap( + "Please file a bug at " + \ + "https://bugs.gentoo.org",wrap_width)) + _eqawarn(msg) + + if missing_inherit_ebuild: + msg = ["QA Notice: Unrecognized command in ebuild:"] + msg.append("") + msg.extend("\t" + line for line in missing_inherit_ebuild) + msg.append("") + msg.extend(wrap( + "Please file a bug at " + \ + "https://bugs.gentoo.org",wrap_width)) + _eqawarn(msg) if mydo == "install": # User and group bits that match the "portage" user or group are