diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-24 04:16:39 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-24 04:16:39 +0000 |
commit | aec3771a05af87733b30d1552d78a9a322821ac8 (patch) | |
tree | 5974b1147da5231a410d06057542709bd2f6783b /todo.py | |
parent | 097a43a58ccd8827c68df5ad49bde00a91c3e3a0 (diff) | |
download | anaconda-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.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) |