From 96e9cf35f11f271e46af8d3c0f00c9664052fc74 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 18 Nov 2014 12:31:30 +1000 Subject: Add alpm_option_match_noextract This is useful for frontends testing whether a file is in NoExtract 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 6545592b..5ef619ea 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -542,6 +542,11 @@ int SYMEXPORT alpm_option_remove_noextract(alpm_handle_t *handle, const char *pa return _alpm_option_strlist_rem(handle, &(handle->noextract), path); } +int SYMEXPORT alpm_option_match_noextract(alpm_handle_t *handle, const char *path) +{ + return _alpm_fnmatch_patterns(handle->noextract, path); +} + int SYMEXPORT alpm_option_add_ignorepkg(alpm_handle_t *handle, const char *pkg) { return _alpm_option_strlist_add(handle, &(handle->ignorepkg), pkg); -- cgit v1.2.3-24-g4f1b