#!/bin/sh
set -e

case "$1" in
    configure)
	ping -q -c 3 `grep ^deb\  /etc/apt/sources.list | head -1 | \
		cut -s -d\  -f2 | cut -d/ -f3` > /dev/null 2>&1 && \
		apt-file update || true
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
