build.py'ye try/except bloğu eklendi ( 4 action betiği ), geri kalan coding standarta uymak adına...
This commit is contained in:
@@ -48,7 +48,11 @@ class PisiBuild:
|
||||
|
||||
# applyPatches()
|
||||
|
||||
try:
|
||||
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
|
||||
# will create a name-version top-level directory.
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
# installation database
|
||||
# maintainer: eray and caglar
|
||||
|
||||
import config
|
||||
from context import Context
|
||||
import util
|
||||
import bsddb.dbshelve as shelve
|
||||
|
||||
util.check_dir( config.db_dir() )
|
||||
d = shelve.open( config.db_dir() + '/install.bdb')
|
||||
files_dir = config.archives_dir() + "/files"
|
||||
util.check_dir(Context.db_dir())
|
||||
d = shelve.open(Context.db_dir() + '/install.bdb')
|
||||
files_dir = Context.archives_dir() + "/files"
|
||||
|
||||
class InstallDBError(Exception):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user