Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2019-06-03 00:32:36 -0700
committerAllan McRae <allan@archlinux.org>2019-06-06 10:38:31 +1000
commit39c20ad4f1d5f6e915b5be8976b6a94885ca3b0c (patch)
tree74d38438facb45679fda9e22711186c3abac67bb /test
parent55a65aaf904a32bcf59c652cbc03fc510c265142 (diff)
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 'test')
-rw-r--r--test/pacman/tests/hook-file-change-packages.py2
-rw-r--r--test/pacman/tests/hook-file-remove-trigger-match.py2
-rw-r--r--test/pacman/tests/hook-file-upgrade-nomatch.py2
-rw-r--r--test/pacman/tests/hook-target-list.py2
-rw-r--r--test/pacman/tests/hook-type-reused.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/test/pacman/tests/hook-file-change-packages.py b/test/pacman/tests/hook-file-change-packages.py
index ad96fc14..4671dbe8 100644
--- a/test/pacman/tests/hook-file-change-packages.py
+++ b/test/pacman/tests/hook-file-change-packages.py
@@ -4,7 +4,7 @@ self.add_script("hook-script", ": > hook-output")
self.add_hook("hook",
"""
[Trigger]
- Type = File
+ Type = Path
Operation = Upgrade
Target = bin/foo
diff --git a/test/pacman/tests/hook-file-remove-trigger-match.py b/test/pacman/tests/hook-file-remove-trigger-match.py
index 6c9375c0..ac50014c 100644
--- a/test/pacman/tests/hook-file-remove-trigger-match.py
+++ b/test/pacman/tests/hook-file-remove-trigger-match.py
@@ -4,7 +4,7 @@ self.add_script("hook-script", ": > hook-output")
self.add_hook("hook",
"""
[Trigger]
- Type = File
+ Type = Path
Operation = Remove
Target = bin/foo
diff --git a/test/pacman/tests/hook-file-upgrade-nomatch.py b/test/pacman/tests/hook-file-upgrade-nomatch.py
index e984d376..891b8164 100644
--- a/test/pacman/tests/hook-file-upgrade-nomatch.py
+++ b/test/pacman/tests/hook-file-upgrade-nomatch.py
@@ -4,7 +4,7 @@ self.add_script("hook-script", ": > hook-output")
self.add_hook("hook",
"""
[Trigger]
- Type = File
+ Type = Path
Operation = Upgrade
Target = bin/?*
diff --git a/test/pacman/tests/hook-target-list.py b/test/pacman/tests/hook-target-list.py
index 6dd6c4d8..b932c491 100644
--- a/test/pacman/tests/hook-target-list.py
+++ b/test/pacman/tests/hook-target-list.py
@@ -14,7 +14,7 @@ self.add_hook("hook",
Target = foo
[Trigger]
- Type = File
+ Type = Path
Operation = Install
# matches files in 'file/' but not 'file/' itself
Target = file/?*
diff --git a/test/pacman/tests/hook-type-reused.py b/test/pacman/tests/hook-type-reused.py
index 472c8caf..0ea1c0ba 100644
--- a/test/pacman/tests/hook-type-reused.py
+++ b/test/pacman/tests/hook-type-reused.py
@@ -4,7 +4,7 @@ self.add_hook("hook",
"""
[Trigger]
Type = Package
- Type = File
+ Type = Path
Operation = Install
Target = foo