index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-06-20 15:15:05 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-20 15:19:19 -0500 |
commit | 6c00ca8f234cfcbfde7e36b68d85f9dcab5716c8 (patch) | |
tree | a7eaee9848e37456c2da93b68da74868af48c601 /lib/libalpm/sync.c | |
parent | 7fc50d79508f30e74e5ea8d9c801549e7f52229d (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 6 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 67afd397..68ee8dc7 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -291,7 +291,11 @@ int _alpm_sync_target(alpm_list_t *dbs_sync, char *target) } if(!found) { - RET_ERR(PM_ERR_PKG_NOT_FOUND, -1); + /* pass through any 'found but ignored' errors */ + if(pm_errno != PM_ERR_PKG_IGNORED) { + pm_errno = PM_ERR_PKG_NOT_FOUND; + } + return(-1); } return(0); |