if not os.path.exists(self.dbcatdir):
ensure_dirs(self.dbcatdir)
- try:
- slot = self.mycpv.slot
- except AttributeError:
- # discard the sub-slot if necesssary
- slot = _pkg_str(self.mycpv, slot=slot).slot
+ # NOTE: We use SLOT obtained from the inforoot
+ # directory, in order to support USE=multislot.
+ # Use _pkg_str discard the sub-slot part if necessary.
+ slot = _pkg_str(self.mycpv, slot=slot).slot
cp = self.mysplit[0]
slot_atom = "%s:%s" % (cp, slot)