commit: 3ddb56254c02b034939b8c28f4d49a7d1eb7615d Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Fri Oct 24 23:17:23 2014 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Nov 2 17:49:23 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3ddb5625
LocationsManager: enable user package.bashrc In /etc/portage/profile, we already have support for using directories in the place of regular config files (portage1_directories = True). So, go ahead and enable package.bashrc there too. We could also support /etc/portage/package.bashrc, but that would be more complicated since /etc/portage/bashrc is the long-standing location of the user's bashrc which applies to all packages, and package.bashrc would instead expect /etc/portage/bashrc to be a directory containing per-package bashrc files. So for now, we only support package.bashrc inside /etc/portage/profile. Note that since /etc/portage/profile is not part of a repository, there's no associated layout.conf. So, there's no way to enable the profile-env profile-formats setting in /etc/portage/profile, except by hardcoding. Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> Acked-by: Brian Dolbec <dolsen <AT> gentoo.org> --- pym/portage/package/ebuild/_config/LocationsManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym/portage/package/ebuild/_config/LocationsManager.py index 8bf321c..6280a42 100644 --- a/pym/portage/package/ebuild/_config/LocationsManager.py +++ b/pym/portage/package/ebuild/_config/LocationsManager.py @@ -132,7 +132,8 @@ class LocationsManager(object): self.user_profile_dir = custom_prof self.profiles.append(custom_prof) self.profiles_complex.append( - _profile_node(custom_prof, True, True, ())) + _profile_node(custom_prof, True, True, + ('profile-bashrcs',))) del custom_prof self.profiles = tuple(self.profiles)