index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-05-09 23:11:39 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-05-09 23:11:39 -0500 |
commit | 1213212c3116051b398905ca1014e6dca5c45481 (patch) | |
tree | f35d8b494a06498202d4bf8462fec0423fc31f16 /lib/libalpm/sync.c | |
parent | 34ee32d3733eae087bb26cfcbaa8b6f1ae1d4d12 (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 4 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 7823a67b..ef8af5c6 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -123,7 +123,9 @@ static int find_replacements(pmtrans_t *trans, pmdb_t *db_local, } _alpm_log(PM_LOG_DEBUG, _("checking replacement '%s' for package '%s'"), replacement, spkg->name); - if(alpm_list_find_str(handle->ignorepkg, lpkg->name)) { + /* ignore if EITHER the local or replacement package are to be ignored */ + if(alpm_list_find_str(handle->ignorepkg, spkg->name) + || alpm_list_find_str(handle->ignorepkg, lpkg->name)) { _alpm_log(PM_LOG_WARNING, _("%s-%s: ignoring package upgrade (to be replaced by %s-%s)"), alpm_pkg_get_name(lpkg), alpm_pkg_get_version(lpkg), alpm_pkg_get_name(spkg), alpm_pkg_get_version(spkg)); |