From dfcc6b4ca03ba2105e88b88764bbde724b3bae09 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 23 Jan 2013 17:32:01 -0800 Subject: [PATCH] Package._init_use: always sync _metadata --- pym/_emerge/Package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py index 19b7c4cd9..ae0357661 100644 --- a/pym/_emerge/Package.py +++ b/pym/_emerge/Package.py @@ -593,8 +593,6 @@ class Package(Task): if not use_str: use_str = self._get_pkgsettings()["PORTAGE_USE"] calculated_use = True - _PackageMetadataWrapperBase.__setitem__( - self._metadata, 'USE', use_str) self._use = self._use_class( self, use_str.split()) # Initialize these now, since USE access has just triggered @@ -603,6 +601,9 @@ class Package(Task): if calculated_use: self._use._init_force_mask() + _PackageMetadataWrapperBase.__setitem__( + self._metadata, 'USE', use_str) + return use_str class _iuse(object): -- 2.26.2