Compare commits

...

3 Commits

Author SHA1 Message Date
Allan McRae
057316cb32 Document that final hook match wins
Signed-off-by: Allan McRae <allan@archlinux.org>
2025-11-08 13:56:40 +10:00
Allan McRae
938cfd5b4e Remove deprecated File target for hook types
Signed-off-by: Allan McRae <allan@archlinux.org>
2025-11-08 12:28:57 +10:00
Allan McRae
2df7c407e8 Add disable-sandbox-* options to parseargs
Signed-off-by: Allan McRae <allan@archlinux.org>
2025-11-02 11:36:19 +10:00
3 changed files with 5 additions and 7 deletions

View File

@@ -55,15 +55,15 @@ defined the hook will run if the transaction matches *any* of the triggers.
*Type =* Path|Package::
Select whether targets are matched against transaction packages or files.
See CAVEATS for special notes regarding Path triggers. 'File' is a deprecated
alias for 'Path' and will be removed in a future release. Required.
See CAVEATS for special notes regarding Path triggers. Required.
*Target =* <path|package>::
The path or package name to match against the active transaction.
Paths refer to the files in the package archive; the installation root
should *not* be included in the path. Shell-style glob patterns are
allowed. It is possible to invert matches by prepending a target with an
exclamation mark. May be specified multiple times. Required.
exclamation mark. May be specified multiple times, with subsequent
matches overriding previous ones. Required.
ACTIONS
-------

View File

@@ -189,10 +189,6 @@ static int _alpm_hook_parse_cb(const char *file, int line,
}
if(strcmp(value, "Package") == 0) {
t->type = ALPM_HOOK_TYPE_PACKAGE;
} else if(strcmp(value, "File") == 0) {
_alpm_log(handle, ALPM_LOG_DEBUG,
"File targets are deprecated, use Path instead\n");
t->type = ALPM_HOOK_TYPE_PATH;
} else if(strcmp(value, "Path") == 0) {
t->type = ALPM_HOOK_TYPE_PATH;
} else {

View File

@@ -1035,6 +1035,8 @@ static int parseargs(int argc, char *argv[])
{"color", required_argument, 0, OP_COLOR},
{"disable-download-timeout", no_argument, 0, OP_DISABLEDLTIMEOUT},
{"disable-sandbox", no_argument, 0, OP_DISABLESANDBOX},
{"disable-sandbox-filesystem", no_argument, 0, OP_DISABLESANDBOXFILESYSTEM},
{"disable-sandbox-syscalls", no_argument, 0, OP_DISABLESANDBOXSYSCALLS},
{0, 0, 0, 0}
};