build.py'ye try/except bloğu eklendi ( 4 action betiği ), geri kalan coding standarta uymak adına...

This commit is contained in:
S.Çağlar Onur
2005-06-16 11:31:09 +00:00
parent bf202d8c27
commit 61a54e0933
8 changed files with 52 additions and 48 deletions
+4
View File
@@ -48,7 +48,11 @@ class PisiBuild:
# applyPatches() # applyPatches()
try:
self.actionScript = open(os.path.dirname(self.ctx.pspecfile ) + '/' + 'actions').read() self.actionScript = open(os.path.dirname(self.ctx.pspecfile ) + '/' + 'actions').read()
except IOError, e:
print "Action Script: %s" % e
return
# FIXME: It's wrong to assume that unpacked archive # FIXME: It's wrong to assume that unpacked archive
# will create a name-version top-level directory. # will create a name-version top-level directory.
+4 -4
View File
@@ -2,13 +2,13 @@
# installation database # installation database
# maintainer: eray and caglar # maintainer: eray and caglar
import config from context import Context
import util import util
import bsddb.dbshelve as shelve import bsddb.dbshelve as shelve
util.check_dir( config.db_dir() ) util.check_dir(Context.db_dir())
d = shelve.open( config.db_dir() + '/install.bdb') d = shelve.open(Context.db_dir() + '/install.bdb')
files_dir = config.archives_dir() + "/files" files_dir = Context.archives_dir() + "/files"
class InstallDBError(Exception): class InstallDBError(Exception):
pass pass