Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
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);