[pacman-dev] [PATCH 1/3] Make (_alpm_)fnmatch_patterns available to front-end

Andrew Gregory andrew.gregory.8 at gmail.com
Mon Nov 17 16:33:17 UTC 2014


On 11/17/14 at 11:33pm, Allan McRae wrote:
> This function will be useful in determining if any files are in the NoExtract
> array when checking for missing files.
> 
> Signed-off-by: Allan McRae <allan at archlinux.org>
> ---
>  lib/libalpm/add.c        |  4 ++--
>  lib/libalpm/util.c       | 31 -------------------------------
>  lib/libalpm/util.h       |  1 -
>  src/common/util-common.c | 32 ++++++++++++++++++++++++++++++++
>  src/common/util-common.h |  4 ++++
>  5 files changed, 38 insertions(+), 34 deletions(-)

Rather than moving this low-level function into util-common, I think we should
expose higher level functions through the API, something like
alpm_path_match_noextract or alpm_option_match_noextract.

apg


More information about the pacman-dev mailing list