#!/bin/sh -e case "$1" in configure) # check for lsb-release version PINNING_FILE="/etc/apt/preferences.d/lsb_lliurex_pinning" CURRENT_LSB="$(dpkg-query -W -f '${Version}' "lsb-release" 2>/dev/null)" EVIL_LSB="4.0-0ubuntu5-lliurex1" if [ "$CURRENT_LSB" = "$EVIL_LSB" ] ; then cat > "$PINNING_FILE" << EOF Package: lsb-base Pin: version _@_DEB_VERSION_@_ Pin-Priority: 1001 Package: lsb-release Pin: version _@_DEB_VERSION_@_ Pin-Priority: 1001 EOF else rm -f "$PINNING_FILE" fi ;; esac #DEBHELPER#