1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

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>
This commit is contained in:
Rémy Oudompheng 2011-04-05 01:38:21 +02:00 committed by Dan McGee
parent 6a8b1c4f84
commit fc334b4e77

View File

@ -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);