diff options
author | Chris Lumens <clumens@redhat.com> | 2006-01-17 18:55:04 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-01-17 18:55:04 +0000 |
commit | 1cddc552119f921c7dcc6e338c644bde4743348b (patch) | |
tree | 0ad8620aab0fb3d6bf38c955b0eb5771dedbb3d8 /exception.py | |
parent | 2aa345009e69451837c84bba4e99ceadaf01381a (diff) | |
download | anaconda-1cddc552119f921c7dcc6e338c644bde4743348b.tar.gz anaconda-1cddc552119f921c7dcc6e338c644bde4743348b.tar.xz anaconda-1cddc552119f921c7dcc6e338c644bde4743348b.zip |
Add yum package selections and excludes to keySkipList. Fix an exception in
exception dumping code.
Diffstat (limited to 'exception.py')
-rw-r--r-- | exception.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/exception.py b/exception.py index 9b7171eaf..c8c7d2268 100644 --- a/exception.py +++ b/exception.py @@ -48,6 +48,7 @@ def dumpClass(instance, fd, level=0, parentkey=""): "intf.icw.id.keyboard._mods._modelDict", "intf.ppw.ics.cw.releaseNotesContents", "intf.ppw.ics.cw.id.bootloader.password", + "intf.ppw.ics.cw.id.instClass.handlers.handlers", "intf.ppw.ics.cw.id.instClass.ksparser.handler.ksdata.bootloader", "intf.ppw.ics.cw.id.instClass.ksparser.handler.ksdata.rootpw", "intf.ppw.ics.cw.id.instClass.ksparser.handler.ksdata.vnc", @@ -69,15 +70,22 @@ def dumpClass(instance, fd, level=0, parentkey=""): "id.tmpData", "id.xsetup.xhwstate.monitor.monlist", "id.xsetup.xhwstate.monitor.monids", - "backend.ayum" + "backend.ayum", + "backend.dlpkgs", + "sack.excludes" ] # protect from loops - if not dumpHash.has_key(instance): - dumpHash[instance] = None - else: - fd.write("Already dumped\n") + try: + if not dumpHash.has_key(instance): + dumpHash[instance] = None + else: + fd.write("Already dumped\n") + return + except TypeError: + fd.write("Cannot dump object\n") return + if (instance.__class__.__dict__.has_key("__str__") or instance.__class__.__dict__.has_key("__repr__")): fd.write("%s\n" % (instance,)) |