From ea314d2f45c40a006c0104157013ab4b857f665f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 20:35:28 +0200 Subject: Adding upstream version 1.22.4. Signed-off-by: Daniel Baumann --- tests/t-triggers/pkg-trig-cmd/DEBIAN/preinst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/t-triggers/pkg-trig-cmd/DEBIAN/preinst (limited to 'tests/t-triggers/pkg-trig-cmd/DEBIAN/preinst') diff --git a/tests/t-triggers/pkg-trig-cmd/DEBIAN/preinst b/tests/t-triggers/pkg-trig-cmd/DEBIAN/preinst new file mode 100755 index 0000000..3975be0 --- /dev/null +++ b/tests/t-triggers/pkg-trig-cmd/DEBIAN/preinst @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +if [ -e "$DPKG_ROOT/trigger-$DPKG_MAINTSCRIPT_NAME" ]; then + if [ -e "$DPKG_ROOT/trigger-noawait" ]; then + echo "Executing 'dpkg-trigger --no-await a-trigger' from '$0 $1'" + dpkg-trigger --no-await a-trigger + elif [ -e "$DPKG_ROOT/trigger-await" ]; then + echo "Executing 'dpkg-trigger --await a-trigger' from '$0 $1'" + dpkg-trigger --await a-trigger + else + echo "Executing 'dpkg-trigger a-trigger' from '$0 $1'" + dpkg-trigger a-trigger + fi +fi + -- cgit v1.2.3