ebuild(1): skip REQUIRED_USE for some phases
authorZac Medico <zmedico@gentoo.org>
Fri, 4 Feb 2011 17:23:12 +0000 (09:23 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 4 Feb 2011 17:23:12 +0000 (09:23 -0800)
pym/portage/package/ebuild/doebuild.py

index 2eb9f11bc6d32b4c4ae2318368570889552eca8d..5272f234cd12bf3447469d95c8ac07c847ebee9c 100644 (file)
@@ -1057,7 +1057,9 @@ def _validate_deps(mysettings, myroot, mydo, mydbapi):
                if mydo not in invalid_dep_exempt_phases:
                        return 1
 
-       if not pkg.built and pkg.metadata["REQUIRED_USE"] and \
+       if not pkg.built and \
+               mydo not in ("digest", "help", "manifest") and \
+               pkg.metadata["REQUIRED_USE"] and \
                eapi_has_required_use(pkg.metadata["EAPI"]):
                result = check_required_use(pkg.metadata["REQUIRED_USE"],
                        pkg.use.enabled, pkg.iuse.is_valid_flag)