summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-05-10 15:40:30 +0000
committerMatt Wilson <msw@redhat.com>1999-05-10 15:40:30 +0000
commitb5907f6282b1dbf1788591935140fb834ac0810c (patch)
tree993a0299d10f224e21edaed66c18c9f791afc73d /todo.py
parent5ca9debe63e96da255eef8d2f0b5f5f26fc85c9f (diff)
downloadanaconda-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.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/todo.py b/todo.py
index 4b0eb4b07..1f1ea5ea8 100644
--- a/todo.py
+++ b/todo.py
@@ -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)