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()
|
# 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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user