Nux

Merge ~3v1n0/nux:preinst-conffiles-restore-xenial into nux:ubuntu/xenial

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Iain Lane
Approved revision: c62b69465850cfd237b0b6cca40a35a371b1030e
Merged at revision: fcd2043db00b365b453399ac8e94b2a497886391
Proposed branch: ~3v1n0/nux:preinst-conffiles-restore-xenial
Merge into: nux:ubuntu/xenial
Diff against target: 65 lines (+39/-1)
3 files modified
debian/changelog (+9/-0)
debian/control (+2/-1)
debian/nux-tools.preinst (+28/-0)
Reviewer Review Type Date Requested Status
Iain Lane Approve
Review via email: mp+348390@code.launchpad.net

Commit message

debian/nux-tools.preinst: restore backup config files

These might be moved by x11-common.

LP: #1768610

Description of the change

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index f86fea3..41893fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
1nux (4.0.8+16.04.20180613.1-0ubuntu2) UNRELEASED; urgency=medium
2
3 * debian/control: update Vcs
4 * debian/nux-tools.preinst:
5 - Restore backup config files before installing nux-tools, so that they
6 will be updaded with the fixed versions (LP: #1768610)
7
8 -- Marco Trevisan (Treviño) <marco@ubuntu.com> Fri, 22 Jun 2018 14:31:28 +0200
9
1nux (4.0.8+16.04.20180613.1-0ubuntu1) xenial; urgency=medium10nux (4.0.8+16.04.20180613.1-0ubuntu1) xenial; urgency=medium
211
3 * debian/50_check_unity_support:12 * debian/50_check_unity_support:
diff --git a/debian/control b/debian/control
index def29f0..c63c284 100644
--- a/debian/control
+++ b/debian/control
@@ -39,7 +39,8 @@ Section: libs
39Homepage: http://launchpad.net/nux39Homepage: http://launchpad.net/nux
40# If you aren't a member of ~unity-team but need to upload packaging changes,40# If you aren't a member of ~unity-team but need to upload packaging changes,
41# just go ahead. ~unity-team will notice and sync up the code again.41# just go ahead. ~unity-team will notice and sync up the code again.
42Vcs-Bzr: https://code.launchpad.net/~unity-team/nux/trunk42Vcs-Browser: https://git.launchpad.net/~unity-team/nux
43Vcs-Git: https://git.launchpad.net/~unity-team/nux
4344
44Package: libnux-4.0-045Package: libnux-4.0-0
45Section: libs46Section: libs
diff --git a/debian/nux-tools.preinst b/debian/nux-tools.preinst
46new file mode 10064447new file mode 100644
index 0000000..6558821
--- /dev/null
+++ b/debian/nux-tools.preinst
@@ -0,0 +1,28 @@
1#!/bin/sh
2
3set -e
4
5restore_backup_conffiles() {
6 PKGNAME="$1"
7 PREVERSION="$2"
8 MAXVERSION="$3"
9
10 if dpkg --compare-versions "$PREVERSION" lt-nl "$MAXVERSION"; then
11 conffiles="$(dpkg-query --show -f='${Conffiles}' "$PKGNAME")"
12 filepaths="$(echo "$conffiles" | cut -f-2 -d' ')"
13
14 for cfile in $filepaths; do
15 if [ -e "$cfile".x11-back ]; then
16 echo "Moving conffile $cfile back in place..."
17 mv -f "$cfile".x11-back "$cfile"
18 fi
19 done
20 fi
21}
22
23case "$1" in
24install)
25 restore_backup_conffiles nux-tools "$2" 4.0.8+16.04.20180613.1-0ubuntu1;;
26esac
27
28#DEBHELPER#

Subscribers

People subscribed via source and target branches