diff options
author | Dan McGee <dan@archlinux.org> | 2010-06-21 04:01:32 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-21 04:01:32 +0200 |
commit | 67d71ea932a18d27dbb87f4f364ae9159b4edc96 (patch) | |
tree | 9a22c8ea93c530d0e5794ee42523450a4976bec3 /lib | |
parent | 59c47aaf529df02ec1577fe727c3c84d13592666 (diff) | |
parent | c2cf6a14cf44400d0ef249b38d37eb04d3424bf4 (diff) | |
download | pacman-67d71ea932a18d27dbb87f4f364ae9159b4edc96.tar.gz pacman-67d71ea932a18d27dbb87f4f364ae9159b4edc96.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/sync.c | 6 |
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); |