def init(self):
try:
if os.path.exists(self.filename):
log.info(_("The repository already exists."))
return True
self.__init_sqlite3(self.filename)
except Exception as e:
log.error(_("Could not create the repository."), detail=unicode(e))
return False
log.info(_("The repository has been initialized."))
return True
评论列表
文章目录