import portage
from portage.dep import Atom, dep_opconvert, match_from_list, \
remove_slot, use_reduce
-from portage.eapi import eapi_has_strong_blocks, eapi_has_use_deps
+from portage.eapi import eapi_has_strong_blocks, eapi_has_use_deps, eapi_has_slot_deps
from portage.exception import InvalidAtom, InvalidDependString, ParseError
from portage.localization import _
from portage.util import writemsg, writemsg_level
if x.use and not eapi_has_use_deps(eapi):
raise ParseError(
_("invalid atom: '%s'") % (x,))
+ if x.slot and not eapi_has_slot_deps(eapi):
+ raise ParseError(
+ _("invalid atom: '%s'") % (x,))
if repoman:
x = x._eval_qa_conditionals(use_mask, use_force)
(["=dev-libs/A-1.3"], {}, None, True, ["dev-libs/A-1.3"]),
#~ (["=dev-libs/A-1.4"], {}, None, True, ["dev-libs/A-1.4"]),
- #~ (["=dev-libs/A-2.0"], {}, None, False, None),
+ (["=dev-libs/A-2.0"], {}, None, False, None),
(["=dev-libs/A-2.1"], {}, None, True, ["dev-libs/B-1", "dev-libs/A-2.1"]),
(["=dev-libs/A-2.2"], {}, None, True, ["dev-libs/B-1", "dev-libs/A-2.2"]),
(["=dev-libs/A-2.3"], {}, None, True, ["dev-libs/B-1", "dev-libs/A-2.3"]),