From 0214a2a3d955fcd1fa7bbbb7ebd7532729c8a7bf Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Fri, 19 Mar 2004 23:53:27 +0000 Subject: more exception logging, set contexts on the actual directories that we're recursing under --- packages.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages.py b/packages.py index e4690c58f..033bbdf38 100644 --- a/packages.py +++ b/packages.py @@ -399,7 +399,11 @@ class InstallCallback: pass self.rpmFD = -1 raise FileCopyException - except: + except Exception, e: + log("exception was %s for %s-%s-%s" %(e, h['name'], + h['version'], + h['release'])) + self.method.unmountCD() self.messageWindow(_("Error"), _("The package %s-%s-%s cannot be opened. This is due " @@ -1270,7 +1274,7 @@ def setFileCons(instPath, partitions): continue dirfiles = os.listdir(instPath + dir) files.extend(map(addpath, dirfiles)) - + files.append(dir) # blah, to work in a chroot, we need to actually be inside so the # regexes will work -- cgit