+elif [ -f $DISTDIR/etc/debian_version ] ; then
+ case $KEY in
+ pkgversion)
+ $CHROOTCMD /usr/bin/dpkg-query -W \
+ --showformat='${Package}=${Version}#${Status}\n' \
+ | perl -pe 's/(.+)-.*/$1/' \
+ | grep "install ok installed" | cut -d"#" -f1
+ ;;
+ unifiles)
+ echo $* | perl -pe 's/(.+)-.*/$1/' \
+ | xargs $CHROOTCMD /usr/bin/dpkg -L \
+ | grep -v "^/etc\|^/var"
+ ;;
+ dumpfiles)
+ echo $* | perl -pe 's/(.+)-.*/$1/' \
+ | xargs $CHROOTCMD /usr/bin/dpkg -L
+ ;;
+ *)
+ echo unknown request $KEY >&2
+ ;;
+ esac