[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#774905: unblock: gpsd/3.11-2



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package gpsd as it fixes rc bug #774872.


gpsd (3.11-2) unstable; urgency=medium

  * [a759614c] Avoid prompting due to modified squeeze conffiles.
    Thanks to Andreas Beckmann (Closes: #774872)

 -- Bernd Zeimetz <bzed@debian.org>  Thu, 08 Jan 2015 21:35:30 +0100



unblock gpsd/3.11-2


Thanks a lot,

Bernd


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F
diff --git a/debian/changelog b/debian/changelog
index aff8c09..88fd6f2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gpsd (3.11-2) unstable; urgency=medium
+
+  * [a759614c] Avoid prompting due to modified squeeze conffiles.
+    Thanks to Andreas Beckmann (Closes: #774872)
+
+ -- Bernd Zeimetz <bzed@debian.org>  Thu, 08 Jan 2015 21:35:30 +0100
+
 gpsd (3.11-1) unstable; urgency=medium
 
   * [325d1900] Merge tag 'upstream/3.11'
diff --git a/debian/gpsd.preinst b/debian/gpsd.preinst
index d57be64..aba1c8d 100644
--- a/debian/gpsd.preinst
+++ b/debian/gpsd.preinst
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 # preinst script for gpsd
 #
 # see: dh_installdeb(1)
@@ -12,9 +12,13 @@ case "$1" in
             # move config file
             if [ -f /etc/default/gpsd ]; then
                 cp /etc/default/gpsd /etc/default/gpsd.dpkg-pre_3.10
-                if [ "$(md5sum /etc/default/gpsd | awk '{print $1}')" = "5944bab322c2a6df28cf0e64f7f7ec86" ]; then
-                    rm -f /etc/default/gpsd
-                fi
+                gpsd_hashsum="$(md5sum /etc/default/gpsd | awk '{print $1}')"
+                # handle upgrades from squeeze -> wheeze -> jessie
+                case ${gpsd_hashsum} in
+                    5944bab322c2a6df28cf0e64f7f7ec86|4d3f8665963201dc74721ef06bf27989)
+                        rm -f /etc/default/gpsd
+                    ;;
+                esac
             fi
         fi
     ;;

Reply to: