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 --- .../t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/control | 7 +++++++ .../t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postinst | 6 ++++++ tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postrm | 6 ++++++ .../t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/preinst | 6 ++++++ 4 files changed, 25 insertions(+) create mode 100644 tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/control create mode 100755 tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postinst create mode 100755 tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postrm create mode 100755 tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/preinst (limited to 'tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN') diff --git a/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/control b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/control new file mode 100644 index 0000000..69f4d74 --- /dev/null +++ b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/control @@ -0,0 +1,7 @@ +Package: pkg-dir-conffile +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers +Architecture: all +Description: test package - package switching dir to symlink diff --git a/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postinst b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postinst new file mode 100755 index 0000000..572dfa2 --- /dev/null +++ b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +if dpkg-maintscript-helper supports dir_to_symlink; then + dpkg-maintscript-helper dir_to_symlink \ + /test-path/test-subpath ../test-dir 0 -- "$@" +fi diff --git a/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postrm b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postrm new file mode 100755 index 0000000..572dfa2 --- /dev/null +++ b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +if dpkg-maintscript-helper supports dir_to_symlink; then + dpkg-maintscript-helper dir_to_symlink \ + /test-path/test-subpath ../test-dir 0 -- "$@" +fi diff --git a/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/preinst b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/preinst new file mode 100755 index 0000000..572dfa2 --- /dev/null +++ b/tests/t-switch-dir-to-symlink-rel/pkg-dir-conffile-1/DEBIAN/preinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +if dpkg-maintscript-helper supports dir_to_symlink; then + dpkg-maintscript-helper dir_to_symlink \ + /test-path/test-subpath ../test-dir 0 -- "$@" +fi -- cgit v1.2.3