From cbffab246997fb5a06211dfb706b54e5ae5bb59f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:58:51 +0200 Subject: Adding upstream version 1.21.22. Signed-off-by: Daniel Baumann --- tests/t-triggers-path/pkg-interest/DEBIAN/postinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/t-triggers-path/pkg-interest/DEBIAN/postinst (limited to 'tests/t-triggers-path/pkg-interest/DEBIAN/postinst') diff --git a/tests/t-triggers-path/pkg-interest/DEBIAN/postinst b/tests/t-triggers-path/pkg-interest/DEBIAN/postinst new file mode 100755 index 0000000..3968b80 --- /dev/null +++ b/tests/t-triggers-path/pkg-interest/DEBIAN/postinst @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +case "$1" in + triggered) + if [ -e "$DPKG_ROOT/test/trigger/test-file" ]; then + touch "$DPKG_ROOT/test-triggered-file" + else + touch "$DPKG_ROOT/test-triggered-cmd" + fi + ;; +esac + +exit 0 -- cgit v1.2.3