summaryrefslogtreecommitdiffstats
path: root/tests/t-triggers-depends/pkg-interest/DEBIAN/postinst
blob: 9f7672617fd5b83ec82b4069102e61eca8fb8a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

case "$1" in
  triggered)
    pkg_status=`dpkg-query -f '${Status}' -W pkg-depended`
    if [ "$pkg_status" = "install ok installed" ]; then
      echo "Pass: pkg-depended is installed"
    else
      echo "Fail: pkg-depended is not installed ($pkg_status)"
      exit 1
    fi
  ;;
esac

exit 0