From df36fe2e79d5a5490b89c259bef7a1f150cff575 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 29 Nov 2014 18:02:55 -0500 Subject: add alpm_option_match_noupgrade For parity with alpm_option_match_noextract. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/handle.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libalpm/handle.c') 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); -- cgit v1.2.3-24-g4f1b