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:
parent
6a8b1c4f84
commit
fc334b4e77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user