Package._init_use: always sync _metadata v2.2.0_alpha160
authorZac Medico <zmedico@gentoo.org>
Thu, 24 Jan 2013 01:32:01 +0000 (17:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 24 Jan 2013 01:32:01 +0000 (17:32 -0800)
pym/_emerge/Package.py

index 19b7c4cd97b468095734417d20b8136ccf77f2ce..ae0357661343bc2ac48c7e20472b9c1f470db63e 100644 (file)
@@ -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):