summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-24 04:16:39 +0000
committerMatt Wilson <msw@redhat.com>1999-08-24 04:16:39 +0000
commitaec3771a05af87733b30d1552d78a9a322821ac8 (patch)
tree5974b1147da5231a410d06057542709bd2f6783b /todo.py
parent097a43a58ccd8827c68df5ad49bde00a91c3e3a0 (diff)
downloadanaconda-aec3771a05af87733b30d1552d78a9a322821ac8.tar.gz
anaconda-aec3771a05af87733b30d1552d78a9a322821ac8.tar.xz
anaconda-aec3771a05af87733b30d1552d78a9a322821ac8.zip
RPM error callbacks, don't report errors on 'cant make directory'
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py10
1 files changed, 8 insertions, 2 deletions
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)