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

Bug#602425: keyboard-configuration: keyboard_present always returns 0

Package: keyboard-configuration
Version: 1.57
Severity: minor
Tags: patch

Because of the two first kbdpattern lines, any string matches the pattern, and
keyboard_present will always return 0.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (120, 'unstable'), (105, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.36-rc7+ (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages keyboard-configuration depends on:
ii  debconf [debconf-2.0]         1.5.36     Debian configuration management sy

keyboard-configuration recommends no packages.

keyboard-configuration suggests no packages.

-- debconf information excluded
Index: debian/keyboard_present.sh
--- debian/keyboard_present.sh	(révision 65318)
+++ debian/keyboard_present.sh	(copie de travail)
@@ -12,8 +12,7 @@
     [ -f /proc/bus/input/devices ] || return 0
-    kbdpattern=''
-    kbdpattern="$kbdpattern\|AT Set \|AT Translated Set\|AT Raw Set"
+    kbdpattern="AT Set \|AT Translated Set\|AT Raw Set"
     kbdpattern="$kbdpattern\|Atari Keyboard"
     kbdpattern="$kbdpattern\|Amiga Keyboard"
     kbdpattern="$kbdpattern\|HIL keyboard"

Reply to: