diff options
author | Matt Wilson <msw@redhat.com> | 1999-05-10 15:40:30 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-05-10 15:40:30 +0000 |
commit | b5907f6282b1dbf1788591935140fb834ac0810c (patch) | |
tree | 993a0299d10f224e21edaed66c18c9f791afc73d /todo.py | |
parent | 5ca9debe63e96da255eef8d2f0b5f5f26fc85c9f (diff) | |
download | anaconda-b5907f6282b1dbf1788591935140fb834ac0810c.tar.gz anaconda-b5907f6282b1dbf1788591935140fb834ac0810c.tar.xz anaconda-b5907f6282b1dbf1788591935140fb834ac0810c.zip |
better error handling/reporting for the mkdirs in doInstall
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -60,9 +60,11 @@ class ToDo: if not self.installSystem: return - os.mkdir(self.instPath + '/var') - os.mkdir(self.instPath + '/var/lib') - os.mkdir(self.instPath + '/var/lib/rpm') + for i in [ '/var', '/var/lib', '/var/lib/rpm', '/tmp', '/dev' ]: + try: + os.mkdir(self.instPath + i) + except os.error, (errno, msg): + print 'Error making directory %s: %s' % (i, msg) db = rpm.opendb(1, self.instPath) ts = rpm.TransactionSet(self.instPath, db) |