diff -Nru nux-4.0.8+16.04.20180613.1/debian/changelog nux-4.0.8+16.04.20180622.2/debian/changelog --- nux-4.0.8+16.04.20180613.1/debian/changelog 2018-07-23 16:35:03.000000000 +0000 +++ nux-4.0.8+16.04.20180622.2/debian/changelog 2018-07-23 16:35:03.000000000 +0000 @@ -1,3 +1,12 @@ +nux (4.0.8+16.04.20180622.2-0ubuntu1) xenial; urgency=medium + + * debian/control: update Vcs + * debian/nux-tools.preinst: + - Restore backup config files before installing nux-tools, so that they + will be updaded with the fixed versions (LP: #1768610) + + -- Marco Trevisan (TreviƱo) Fri, 22 Jun 2018 13:16:40 +0000 + nux (4.0.8+16.04.20180613.1-0ubuntu1) xenial; urgency=medium * debian/50_check_unity_support: diff -Nru nux-4.0.8+16.04.20180613.1/debian/control nux-4.0.8+16.04.20180622.2/debian/control --- nux-4.0.8+16.04.20180613.1/debian/control 2018-07-23 16:35:03.000000000 +0000 +++ nux-4.0.8+16.04.20180622.2/debian/control 2018-07-23 16:35:03.000000000 +0000 @@ -39,7 +39,8 @@ Homepage: http://launchpad.net/nux # If you aren't a member of ~unity-team but need to upload packaging changes, # just go ahead. ~unity-team will notice and sync up the code again. -Vcs-Bzr: https://code.launchpad.net/~unity-team/nux/trunk +Vcs-Browser: https://git.launchpad.net/~unity-team/nux +Vcs-Git: https://git.launchpad.net/~unity-team/nux Package: libnux-4.0-0 Section: libs diff -Nru nux-4.0.8+16.04.20180613.1/debian/nux-tools.preinst nux-4.0.8+16.04.20180622.2/debian/nux-tools.preinst --- nux-4.0.8+16.04.20180613.1/debian/nux-tools.preinst 1970-01-01 00:00:00.000000000 +0000 +++ nux-4.0.8+16.04.20180622.2/debian/nux-tools.preinst 2018-07-23 16:35:03.000000000 +0000 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +restore_backup_conffiles() { + PKGNAME="$1" + PREVERSION="$2" + MAXVERSION="$3" + + if dpkg --compare-versions "$PREVERSION" lt-nl "$MAXVERSION"; then + conffiles="$(dpkg-query --show -f='${Conffiles}' "$PKGNAME")" + filepaths="$(echo "$conffiles" | cut -f-2 -d' ')" + + for cfile in $filepaths; do + if [ -e "$cfile".x11-back ]; then + echo "Moving conffile $cfile back in place..." + mv -f "$cfile".x11-back "$cfile" + fi + done + fi +} + +case "$1" in +install) + restore_backup_conffiles nux-tools "$2" 4.0.8+16.04.20180613.1-0ubuntu1;; +esac + +#DEBHELPER#