-if [ ! -z ${opt_lintian} ]; then
- pushd ${PACKAGE_DIR} > /dev/null
- lintian ${DEBPKG}_${DEBVERSION}_*.changes
- popd > /dev/null
-fi
+echo "Checking package with lintian"
+DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < ${WORK_DIR}/debian/changelog |head -1`
+pushd ${PACKAGE_DIR} > /dev/null
+lintian ${DEBPKG}_${DEBVERSION}_*.changes
+popd > /dev/null