summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-20 21:01:32 -0500
committerDan McGee <dan@archlinux.org>2010-06-20 21:01:32 -0500
commit67d71ea932a18d27dbb87f4f364ae9159b4edc96 (patch)
tree9a22c8ea93c530d0e5794ee42523450a4976bec3 /lib/libalpm
parent59c47aaf529df02ec1577fe727c3c84d13592666 (diff)
parentc2cf6a14cf44400d0ef249b38d37eb04d3424bf4 (diff)
downloadpacman-67d71ea932a18d27dbb87f4f364ae9159b4edc96.tar.xz
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c6
1 files changed, 5 insertions, 1 deletions
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);