doebuild: disable noauto for binary packages
authorZac Medico <zmedico@gentoo.org>
Tue, 29 Nov 2011 16:24:06 +0000 (08:24 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 29 Nov 2011 16:24:06 +0000 (08:24 -0800)
pym/portage/package/ebuild/doebuild.py

index 4ba523cc4624bf314915be7ad5742ac55a2eb341..e42d9a41c9100fad02dcefab3fefc3e3bca894c1 100644 (file)
@@ -560,6 +560,10 @@ def doebuild(myebuild, mydo, _unused=None, settings=None, debug=0, listonly=0,
                        os.path.dirname(os.path.dirname(pkgdir)))
        else:
                repo_config = None
+               # FEATURES=noauto only makes sense for porttree, and we don't want
+               # it to trigger redundant sourcing of the ebuild for api consumers
+               # that are using binary packages
+               mysettings.features.discard("noauto")
        mf = None
        if "strict" in features and \
                "digest" not in features and \