You have to be root.

BUG:FIXED:4232
This commit is contained in:
Faik Uygur
2006-12-08 18:48:44 +00:00
parent 1f8bfa07e6
commit bfd504b2b5
+1 -1
View File
@@ -92,7 +92,7 @@ def init_dbenv(write=False, writeversion=False):
ctx.dbenv.open(pisi.context.config.db_dir(), flags)
ctx.dbenv.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
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:
ctx.dbenv = None # read-only access to database