# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2+
################################################################################
-# http://www.debian.org/releases/stable/i386/index.html.en
# variables {{{
PN="$(basename $0)"
-VERSION="$(dpkg --list $PN 2>/dev/null| awk '/^i/ {print $3}')"
+VERSION="$(dpkg-query --show --showformat='${Version}' "$PN")"
VERSION="${VERSION:-unknown}"
MNTPOINT="/mnt/debootstrap.$$"