From aec3771a05af87733b30d1552d78a9a322821ac8 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Tue, 24 Aug 1999 04:16:39 +0000 Subject: RPM error callbacks, don't report errors on 'cant make directory' --- todo.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'todo.py') diff --git a/todo.py b/todo.py index 39f55b39b..3bd90490c 100644 --- a/todo.py +++ b/todo.py @@ -807,6 +807,9 @@ class ToDo: for package in packages: self.hdList[package[rpm.RPMTAG_NAME]].selected = 1 win.pop () + + def rpmError (self): + todo.instLog.write (rpm.errorString () + "\n") def doInstall(self): # make sure we have the header list and comps file @@ -831,8 +834,9 @@ class ToDo: try: os.mkdir(self.instPath + i) except os.error, (errno, msg): - self.intf.messageWindow("Error", "Error making directory %s: %s" % (i, msg)) - + # self.intf.messageWindow("Error", "Error making directory %s: %s" % (i, msg)) + pass + db = rpm.opendb(1, self.instPath) ts = rpm.TransactionSet(self.instPath, db) @@ -890,6 +894,8 @@ class ToDo: else: pass + rpm.errorSetCallback (self.rpmError) + # XXX FIXME FIXME: -1 IGNORES all problems ts.run(0, -1, instCallback, p) -- cgit