summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge')
-rw-r--r--pym/_emerge/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 0a024d502..a6aa3ff6e 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1280,14 +1280,10 @@ class Package(Task):
Task.__init__(self, **kwargs)
self.metadata = self._metadata_wrapper(self, self.metadata)
self.cp = portage.cpv_getkey(self.cpv)
- self.slot = self.metadata["SLOT"]
- self.slot_atom = portage.dep.Atom("%s:%s" % \
- (self.cp, self.metadata["SLOT"]))
-
+ self.slot_atom = portage.dep.Atom("%s:%s" % (self.cp, self.slot))
self.category, self.pf = portage.catsplit(self.cpv)
self.cpv_split = portage.catpkgsplit(self.cpv)
self.pv_split = self.cpv_split[1:]
- self.use = self._use(self.metadata["USE"].split())
class _use(object):
def __init__(self, use):
@@ -1305,6 +1301,8 @@ class Package(Task):
dict.__setitem__(self, k, v)
if k == "USE":
self._pkg.use = self._pkg._use(v.split())
+ elif k == "SLOT":
+ self._pkg.slot = v
def _metadata_setitem(self, k, v):
self._metadata_setitem_orig(k, v)