mirror of
https://gitlab.archlinux.org/pacman/pacman.git
synced 2025-11-09 03:54:41 +01:00
Compare commits
2 Commits
release/7.
...
allan/hook
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
057316cb32 | ||
|
|
938cfd5b4e |
@@ -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
|
||||
-------
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user