summaryrefslogtreecommitdiffstats
path: root/pym/portage/exception.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-26 22:43:31 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-26 22:43:31 -0700
commit365e9a71e5dff59be90f4ca16eefb245031c1e7f (patch)
tree334ed847ad84acd72b33e37d03715f9ec66d0770 /pym/portage/exception.py
parenta6d1ea1a96194687463e320fa6ad39b2e5cff634 (diff)
downloadportage-365e9a71e5dff59be90f4ca16eefb245031c1e7f.tar.gz
portage-365e9a71e5dff59be90f4ca16eefb245031c1e7f.tar.bz2
portage-365e9a71e5dff59be90f4ca16eefb245031c1e7f.zip
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.
Diffstat (limited to 'pym/portage/exception.py')
-rw-r--r--pym/portage/exception.py3
1 files changed, 3 insertions, 0 deletions
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"""