Added MVR to Atom class

parent a9e2b3b3
......@@ -83,6 +83,7 @@ class Pybuild1(Pybuild):
self.R = self.ATOM.R
self.CM = self.ATOM.CM
self.CMN = self.ATOM.CMN
self.MVR = self.ATOM.MVR
self.IUSE_EFFECTIVE = set()
......
......@@ -45,6 +45,7 @@ class Atom(str):
R: Optional[str]
OP: Optional[str]
BLOCK: bool
MVR: Optional[str]
def __init__(self, atom: str):
match = _atom_re.match(atom)
......@@ -80,6 +81,9 @@ class Atom(str):
self.R = match.group("R")
self.OP = match.group("OP")
self.BLOCK = match.group("B") is not None
self.MVR = self.MV
if self.MR:
self.MVR += "-" + self.MR
if self.OP is not None and self.MV is None:
raise InvalidAtom(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment