From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 10 May 2012 19:54:25 +0000 (+0200) Subject: Make REPOSITORY variable again available in global scope of ebuilds, X-Git-Tag: v2.2.0_alpha104~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=933ab0862f7333f0a4d1cc7ac85dea9f2693097c;p=portage.git Make REPOSITORY variable again available in global scope of ebuilds, which use EAPI="4-python". This fixes regression introduced in commit 1c26d24dfc869a6f5ef426f7c02e1d25abcda34e. --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index ad6857f7e..faba9b696 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -342,8 +342,10 @@ def doebuild_environment(myebuild, mydo, myroot=None, settings=None, if not eapi_is_supported(eapi): raise UnsupportedAPIException(mycpv, eapi) - if mydo != "depend": + if eapi_exports_REPOSITORY(eapi) and "PORTAGE_REPO_NAME" in mysettings.configdict["pkg"]: + mysettings.configdict["pkg"]["REPOSITORY"] = mysettings.configdict["pkg"]["PORTAGE_REPO_NAME"] + if mydo != "depend": if hasattr(mydbapi, "getFetchMap") and \ ("A" not in mysettings.configdict["pkg"] or \ "AA" not in mysettings.configdict["pkg"]): @@ -404,11 +406,6 @@ def doebuild_environment(myebuild, mydo, myroot=None, settings=None, mysettings["KV"] = "" mysettings.backup_changes("KV") - if eapi_exports_REPOSITORY(eapi) and \ - "PORTAGE_REPO_NAME" in mysettings.configdict["pkg"]: - mysettings.configdict["pkg"]["REPOSITORY"] = \ - mysettings.configdict["pkg"]["PORTAGE_REPO_NAME"] - _doebuild_manifest_cache = None _doebuild_broken_ebuilds = set() _doebuild_broken_manifests = set()