From: Zac Medico Date: Sat, 12 May 2012 22:57:03 +0000 (-0700) Subject: _pkg_str: add cpv attribute for match_from_list X-Git-Tag: v2.2.0_alpha105~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45de6e3dbea776bba5f9483a9f23fbcc5c2f6520;p=portage.git _pkg_str: add cpv attribute for match_from_list --- diff --git a/pym/portage/versions.py b/pym/portage/versions.py index de2fe709f..ea8d5ae57 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -351,6 +351,8 @@ class _pkg_str(_unicode): if self.cpv_split is None: raise InvalidData(cpv) self.__dict__['cp'] = self.cpv_split[0] + '/' + self.cpv_split[1] + # for match_from_list introspection + self.__dict__['cpv'] = self def __setattr__(self, name, value): raise AttributeError("_pkg_str instances are immutable",