diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-01-19 18:33:10 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-01-19 18:33:10 -0800 |
commit | 94084ef96909a6f938daa2a90aedc1cc3fc8ce0b (patch) | |
tree | cd898452fff21576895a955370c68bba25b835c1 /pym/portage/versions.py | |
parent | 6cb7a5b6a72cf0601dff513fefad52ff6fb83835 (diff) | |
download | portage-94084ef96909a6f938daa2a90aedc1cc3fc8ce0b.tar.gz portage-94084ef96909a6f938daa2a90aedc1cc3fc8ce0b.tar.bz2 portage-94084ef96909a6f938daa2a90aedc1cc3fc8ce0b.zip |
repoman: fix stable mask to use correct profilev2.2.0_alpha157
We can't rely on the internal config instance from the given package
instance, since it does not refer to the correct profile.
Diffstat (limited to 'pym/portage/versions.py')
-rw-r--r-- | pym/portage/versions.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pym/portage/versions.py b/pym/portage/versions.py index 1dd2ff359..46c53089b 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -408,11 +408,13 @@ class _pkg_str(_unicode): settings = self._settings except AttributeError: raise AttributeError('stable') + if not settings.local_config: + # Since repoman uses different config instances for + # different profiles, our local instance does not + # refer to the correct profile. + raise AssertionError('invalid context') stable = settings._isStable(self) - if settings.local_config: - # For repoman, don't cache this value, since - # it needs to be re-computed for each profile. - self.__dict__['_stable'] = stable + self.__dict__['_stable'] = stable return stable def pkgsplit(mypkg, silent=1, eapi=None): |