Set PORTAGE_REPO_NAME for depend phase.
authorZac Medico <zmedico@gentoo.org>
Thu, 14 Jul 2011 21:53:48 +0000 (14:53 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 14 Jul 2011 21:53:48 +0000 (14:53 -0700)
pym/portage/package/ebuild/doebuild.py

index fb29b00625f8d689fae31f62410b312c04e2dc95..49b67aca0aa7c4f594a4ce39bf5ef5307c227861 100644 (file)
@@ -212,6 +212,7 @@ def doebuild_environment(myebuild, mydo, myroot=None, settings=None,
                repo_info = mydbapi._repo_info[mytree]
                mysettings['PORTDIR'] = repo_info.portdir
                mysettings['PORTDIR_OVERLAY'] = repo_info.portdir_overlay
+               mysettings.configdict["pkg"]["PORTAGE_REPO_NAME"] = repo_info.name
 
        mysettings["PORTDIR"] = os.path.realpath(mysettings["PORTDIR"])
        mysettings["DISTDIR"] = os.path.realpath(mysettings["DISTDIR"])