diff options
author | Rémy Oudompheng <remyoudompheng@gmail.com> | 2011-04-05 01:38:21 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-05 02:03:27 +0200 |
commit | fc334b4e77553643bf9cdec47a4469ea7c62566b (patch) | |
tree | 2c7d21c315050fa05a1fd34586e5d7fa8b20e96a /lib | |
parent | 6a8b1c4f8433e95e713e3c6f152ba717c90d1dc9 (diff) | |
download | pacman-fc334b4e77553643bf9cdec47a4469ea7c62566b.tar.gz pacman-fc334b4e77553643bf9cdec47a4469ea7c62566b.tar.xz |
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.c | 2 |
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); |