summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-11-30 00:02:55 +0100
committerAllan McRae <allan@archlinux.org>2014-12-18 13:22:35 +0100
commitdf36fe2e79d5a5490b89c259bef7a1f150cff575 (patch)
tree45a5ace2e28ffc13939eb8a6c112e43a8f7f2e50 /lib/libalpm/handle.c
parent768b65e93472914c52cc1159c4932d4fc1438c14 (diff)
downloadpacman-df36fe2e79d5a5490b89c259bef7a1f150cff575.tar.gz
pacman-df36fe2e79d5a5490b89c259bef7a1f150cff575.tar.xz
add alpm_option_match_noupgrade
For parity with alpm_option_match_noextract. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 5ef619ea..fa999489 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -527,6 +527,11 @@ int SYMEXPORT alpm_option_remove_noupgrade(alpm_handle_t *handle, const char *pk
return _alpm_option_strlist_rem(handle, &(handle->noupgrade), pkg);
}
+int SYMEXPORT alpm_option_match_noupgrade(alpm_handle_t *handle, const char *path)
+{
+ return _alpm_fnmatch_patterns(handle->noupgrade, path);
+}
+
int SYMEXPORT alpm_option_add_noextract(alpm_handle_t *handle, const char *path)
{
return _alpm_option_strlist_add(handle, &(handle->noextract), path);