From 7f1f1355bbb3941a30798a295721e7f35077e116 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sat, 9 Jun 2018 19:45:59 +0200 Subject: libalpm: ignore .hook suffix when sorting hooks It is desirable to have 'a-post.hook' ordered after 'a.hook'. For this, it is needed to ignore the suffix when sorting. Signed-off-by: Allan McRae --- lib/libalpm/hook.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/hook.h') diff --git a/lib/libalpm/hook.h b/lib/libalpm/hook.h index 364d22d7..30d565df 100644 --- a/lib/libalpm/hook.h +++ b/lib/libalpm/hook.h @@ -22,6 +22,8 @@ #include "alpm.h" +#define ALPM_HOOK_SUFFIX ".hook" + int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when); #endif /* ALPM_HOOK_H */ -- cgit v1.2.3-54-g00ecf