From 45de6e3dbea776bba5f9483a9f23fbcc5c2f6520 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 12 May 2012 15:57:03 -0700 Subject: [PATCH] _pkg_str: add cpv attribute for match_from_list --- pym/portage/versions.py | 2 ++ 1 file changed, 2 insertions(+) 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", -- 2.26.2