diff options
Diffstat (limited to 'tests/t-disappear-diverted/pkg-divert/DEBIAN/preinst')
-rwxr-xr-x | tests/t-disappear-diverted/pkg-divert/DEBIAN/preinst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/t-disappear-diverted/pkg-divert/DEBIAN/preinst b/tests/t-disappear-diverted/pkg-divert/DEBIAN/preinst new file mode 100755 index 0000000..898c3c5 --- /dev/null +++ b/tests/t-disappear-diverted/pkg-divert/DEBIAN/preinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then + dpkg-divert --rename --add /test-dir/test-normal +fi + |