Package: libsensors4
Version: 1:3.3.0-1
Severity: minor
Tags: patch

preinst script is missing check for ucf binary and prints error on install:

Unpacking libsensors4 (from .../libsensors4_1%3a3.3.0-1_amd64.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 29: ucf: not found

This patch should fix that:

--- libsensors4.preinst.old   2011-05-11 16:45:57.874884962 +0000
+++ libsensors4.preinst       2011-05-11 16:47:05.402376826 +0000
@@ -15,7 +15,9 @@ case "$1" in
             if cmp -s /usr/share/libsensors4/sensors.conf.eg 
/etc/sensors3.conf ; then
                 rm -f /etc/sensors3.conf
             fi
-            ucf -p /etc/sensors3.conf || true
+            if [ -x /usr/bin/ucf ]; then
+                ucf -p /etc/sensors3.conf || true
+            fi
         fi
     ;;

O.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsensors4 depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  udev                          164-3      /dev/ and hotplug management daemo

Versions of packages libsensors4 recommends:
pn  lm-sensors                    <none>     (no description available)

libsensors4 suggests no packages.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to