X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=0c0df3f8339297733c86d6381e9eeb4a729cd033;hp=9c2105026959d5f5f384804636d2a26ee9e7817b;hb=7ec9ddcb8c901ce700b2a9a216f47de95f5a274d;hpb=b8fb51c5d22a90f277a1edf03ca406105c2a74cb diff --git a/grml-debootstrap b/grml-debootstrap index 9c21050..0c0df3f 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -5,11 +5,10 @@ # 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.$$"