Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2009-05-16 16:54:21 +0200
committerDan McGee <dan@archlinux.org>2009-06-01 22:00:57 -0500
commitc520d3845113ce4dc1a473c012288da7f2a655b8 (patch)
tree2595ce5d5b2c1ab667bd0bf0aa9251d52ce2bd4c /lib/libalpm/error.c
parent1b4135ca5d0654d18398d648ba48ecf14caa2289 (diff)
Introduce PM_TRANS_FLAG_NOLOCK
This flag indicates that the front-end will not call alpm_trans_commit(), so the database needn't be locked. This is the first step toward fixing FS#8905. If this flag is set, alpm_trans_commit() does nothing and returns with an error (that has new code: PM_ERR_TRANS_NOT_LOCKED). Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r--lib/libalpm/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index 47f07508..fdff9ed4 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -99,6 +99,8 @@ const char SYMEXPORT *alpm_strerror(int err)
return _("transaction aborted");
case PM_ERR_TRANS_TYPE:
return _("operation not compatible with the transaction type");
+ case PM_ERR_TRANS_NOT_LOCKED:
+ return _("transaction commit attempt when database is not locked");
/* Packages */
case PM_ERR_PKG_NOT_FOUND:
return _("could not find or read package");