From 365e9a71e5dff59be90f4ca16eefb245031c1e7f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 Aug 2010 22:43:31 -0700 Subject: Add a IUSE.missing repoman category for packages that have a USE conditional which references a flag that is not listed in IUSE. Also split out a Package._metadata_exception() method to handle IUSE.missing for *DEPEND and SRC_URI. --- pym/portage/exception.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym/portage/exception.py') diff --git a/pym/portage/exception.py b/pym/portage/exception.py index b289b6285..9564af98a 100644 --- a/pym/portage/exception.py +++ b/pym/portage/exception.py @@ -52,6 +52,9 @@ class ParseError(PortageException): class InvalidData(PortageException): """An incorrect formatting was passed instead of the expected one""" + def __init__(self, value, category=None): + PortageException.__init__(self, value) + self.category = category class InvalidDataType(PortageException): """An incorrect type was passed instead of the expected one""" -- cgit v1.2.3-1-g7c22