You have to be root.
BUG:FIXED:4232
This commit is contained in:
@@ -92,7 +92,7 @@ def init_dbenv(write=False, writeversion=False):
|
|||||||
ctx.dbenv.open(pisi.context.config.db_dir(), flags)
|
ctx.dbenv.open(pisi.context.config.db_dir(), flags)
|
||||||
ctx.dbenv.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
|
ctx.dbenv.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
|
||||||
else:
|
else:
|
||||||
raise Error(_("Cannot write to PiSi database."))
|
raise Error(_("Cannot open PiSi database with write access. You have to be root for this operation."))
|
||||||
else:
|
else:
|
||||||
ctx.dbenv = None # read-only access to database
|
ctx.dbenv = None # read-only access to database
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user