Skip to content
Commits on Source (2)
xorg (1:7.7+19ubuntu8) cosmic; urgency=medium
* x11-common.preinst:
- Rename nux config leftovers which might change the environment
even when not running an unity session (LP: #1768610)
* debian/control:
- x11-common breaks nux-tools (<< 4.0.8+18.04.20180613.5-0ubuntu1) - this
version contains the fixed conffile; if it's installed on the system we
need people to be upgraded to the new version.
-- Marco Trevisan (Treviño) <marco@ubuntu.com> Thu, 21 Jun 2018 11:37:03 +0100
xorg (1:7.7+19ubuntu7) bionic; urgency=medium
[ Simon Quigley ]
......
......@@ -18,6 +18,7 @@ Package: x11-common
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, lsb-base (>= 1.3-9ubuntu2)
Breaks: nux-tools (<< 4.0.8+18.10.20180613.3-0ubuntu1)
Description: X Window System (X.Org) infrastructure
x11-common contains the filesystem infrastructure required for further
installation of the X Window System in any configuration; it does not
......
#!bin/sh
set -e
rm_conffiles_if_uninstalled() {
PKGNAME="$1"
MAXVERSION="$2"
if [ "$(dpkg-query --show --showformat='${db:Status-Status}' "$PKGNAME")" != "config-files" ]; then
return 0;
fi
pkg_version=$(dpkg-query --show --showformat='${Version}' "$PKGNAME")
if dpkg --compare-versions "$pkg_version" lt-nl "$MAXVERSION"; then
conffiles="$(dpkg-query --show -f='${Conffiles}' "$PKGNAME")"
filepaths="$(echo "$conffiles" | cut -f-2 -d' ')"
for cfile in $filepaths; do
if [ -f "$cfile" ]; then
echo "Moving obsolete conffile $cfile to $cfile.x11-back..."
mv -f "$cfile" "$cfile".x11-back
fi
done
fi
}
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" lt 1:7.7+19ubuntu8; then
rm_conffiles_if_uninstalled nux-tools 4.0.8+18.10.20180613.3-0ubuntu1
fi
;;
esac
#DEBHELPER#