#!/bin/bash
trap 'exit 0' SIGINT SIGQUIT SIGTERM SIGKILL
tmpdir=$(dirname $(mktemp))
tmpfile=$tmpdir/deepin-app-store-dpkg-hook.pid
pid="$$"
echo $pid Start $DPKG_HOOK_ACTION at `date` >> /tmp/hook.log
kill -9 $(cat $tmpfile) || true
echo $pid > $tmpfile
/usr/bin/deepin-app-store-pkgcache -c
/usr/bin/deepin-app-store-tool
echo $pid End $DPKG_HOOK_ACTION at `date` >> /tmp/hook.log

