From b5907f6282b1dbf1788591935140fb834ac0810c Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 10 May 1999 15:40:30 +0000 Subject: better error handling/reporting for the mkdirs in doInstall --- todo.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'todo.py') 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) -- cgit