Nux

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

Proposed by Marco Trevisan (Treviño)
Status: Approved
Approved by: Iain Lane
Approved revision: 74b5fe1e1719d6b99708f0d36805d72e1f7c3817
Proposed branch: ~3v1n0/nux:preinst-conffiles-restore-artful
Merge into: nux:ubuntu/artful
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+348392@code.launchpad.net

Commit message

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

These might be moved by x11-common.

LP: #1768610

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

Unmerged commits

74b5fe1... by Marco Trevisan (Treviño)

debian/changelog: update with vcs change

0dcd2bf... by Marco Trevisan (Treviño)

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

These might be moved by x11-common.

LP: #1768610

981876d... by Marco Trevisan (Treviño)

debian/control: update Vcs to use git

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 7b752b2..2f1a697 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
1nux (4.0.8+17.10.20180613.3-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:50:47 +0200
9
1nux (4.0.8+17.10.20180613.3-0ubuntu1) artful; urgency=medium10nux (4.0.8+17.10.20180613.3-0ubuntu1) artful; urgency=medium
211
3 * debian/50_check_unity_support:12 * debian/50_check_unity_support:
diff --git a/debian/control b/debian/control
index e87fa14..b78e6a3 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..6961654
--- /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+17.10.20180613.3-0ubuntu1;;
26esac
27
28#DEBHELPER#

Subscribers

People subscribed via source and target branches