From f15c724e6ea494c21e57289b0361614b6656ac35 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 15 Aug 2010 19:25:32 -0700 Subject: Add support for /etc/portage/make.profile as an alternative to /etc/make.profile. If both /etc/make.profile/ and /etc/portage/make.profile/ exist, then /etc/make.profile/ will be preferred. --- pym/portage/package/ebuild/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index d01f7aeab..27cd85470 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -457,7 +457,12 @@ class config(object): if os.path.isdir(config_profile_path): self.profile_path = config_profile_path else: - self.profile_path = None + config_profile_path = \ + os.path.join(abs_user_config, 'make.profile') + if os.path.isdir(config_profile_path): + self.profile_path = config_profile_path + else: + self.profile_path = None else: self.profile_path = config_profile_path -- cgit v1.2.3-1-g7c22