#!/bin/bash
# This file take the information in $pkg.conflicts and generate conflict
# information from that.

for PKG in $(dpsch-listbinpkgs) ; do
    if [ -f debian/$PKG.questions ] ; then
	if grep "#QUESTIONS#" debian/$PKG/DEBIAN/config > /dev/null 2>&1 ; then
	    debian/substfile "#QUESTIONS#" \
		debian/$PKG/DEBIAN/config debian/$PKG.questions
	fi
	if grep "#QUESTIONS#" debian/$PKG/DEBIAN/postinst > /dev/null 2>&1 ; then
	    debian/substfile "#QUESTIONS#" \
		debian/$PKG/DEBIAN/postinst debian/$PKG.questions
	fi
    fi
done
