summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2019-06-03 09:32:36 +0200
committerAllan McRae <allan@archlinux.org>2019-06-06 02:38:31 +0200
commit39c20ad4f1d5f6e915b5be8976b6a94885ca3b0c (patch)
tree74d38438facb45679fda9e22711186c3abac67bb /doc
parent55a65aaf904a32bcf59c652cbc03fc510c265142 (diff)
downloadpacman-39c20ad4f1d5f6e915b5be8976b6a94885ca3b0c.tar.gz
pacman-39c20ad4f1d5f6e915b5be8976b6a94885ca3b0c.tar.xz
hooks: rename type File to Path
Make it clearer that the targets are matched against both directories and regular files and free up File to potentially refer specifically to regular files in the future. File is retained as a deprecated alias for Path for the time being to avoid breaking existing hooks and will be removed in a future release. See FS#53136. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/alpm-hooks.5.asciidoc17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/alpm-hooks.5.asciidoc b/doc/alpm-hooks.5.asciidoc
index 0f6a1057..916d43bb 100644
--- a/doc/alpm-hooks.5.asciidoc
+++ b/doc/alpm-hooks.5.asciidoc
@@ -12,7 +12,7 @@ SYNOPSIS
--------
[Trigger] (Required, Repeatable)
Operation = Install|Upgrade|Remove (Required, Repeatable)
-Type = File|Package (Required)
+Type = Path|Package (Required)
Target = <Path|PkgName> (Required, Repeatable)
[Action] (Required)
@@ -49,19 +49,20 @@ defined the hook will run if the transaction matches *any* of the triggers.
Select the type of operation to match targets against. May be specified
multiple times. Installations are considered an upgrade if the package or
file is already present on the system regardless of whether the new package
- version is actually greater than the currently installed version. For File
+ version is actually greater than the currently installed version. For Path
triggers, this is true even if the file changes ownership from one package
to another. Required.
-*Type =* File|Package::
+*Type =* Path|Package::
Select whether targets are matched against transaction packages or files.
- See CAVEATS for special notes regarding File triggers. Required.
+ See CAVEATS for special notes regarding Path triggers. 'File' is a deprecated
+ alias for 'Path' and will be removed in a future release. Required.
*Target =* <path|package>::
- The file path or package name to match against the active transaction.
- File paths refer to the files in the package archive; the installation root
+ 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 file with an
+ allowed. It is possible to invert matches by prepending a target with an
exclamation mark. May be specified multiple times. Required.
ACTIONS
@@ -119,7 +120,7 @@ Exec = /usr/bin/sync
CAVEATS
-------
-There are situations when file triggers may act in unexpected ways. Hooks are
+There are situations when path triggers may act in unexpected ways. Hooks are
triggered using the file list of the installed, upgraded, or removed package.
When installing or upgrading a file that is extracted with a '.pacnew'
extension, the original file name is used in triggering the hook. When