Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Oudompheng <remyoudompheng@gmail.com>2011-04-05 01:38:21 +0200
committerDan McGee <dan@archlinux.org>2011-04-04 19:03:27 -0500
commitfc334b4e77553643bf9cdec47a4469ea7c62566b (patch)
tree2c7d21c315050fa05a1fd34586e5d7fa8b20e96a /lib
parent6a8b1c4f8433e95e713e3c6f152ba717c90d1dc9 (diff)
db.c: set pm_errno appropriately in alpm_db_set_pkgreason()
Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index d9ed331e..49bbd00f 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -331,7 +331,7 @@ int SYMEXPORT alpm_db_set_pkgreason(pmdb_t *db, const char *name, pmpkgreason_t
pkg->reason = reason;
/* write DESC */
if(_alpm_local_db_write(db, pkg, INFRQ_DESC)) {
- return(-1);
+ RET_ERR(PM_ERR_DB_WRITE, -1);
}
return(0);