[Pkg-gpm-devel] Bug#266841: /etc/init.d/gpm can't accept repeat_type=none
   
    Gian Piero Carrubba
     
    Gian Piero Carrubba <gp-ml@rm-rf.it>, 266841@bugs.debian.org
       
    Thu, 19 Aug 2004 13:56:21 +0200
    
    
  
Package: gpm
Version: 1.19.6-14
Severity: normal
In order to disable the "repeat" feature, you need not to pass -R
option to gpm. Using "none" as repeat_type (as stated by the debconf
template) cause gpm to exit with error level.
Please correct the debconf template suggesting to leave the field blank
in order to not activate the repeat feature (preferred solution, imo) or
apply the following patch to /etc/init.d/gpm.
$ diff -u /etc/init.d/gpm.orig /etc/init.d/gpm
--- /etc/init.d/gpm.orig        2004-08-17 11:09:46.000000000 +0200
+++ /etc/init.d/gpm     2004-08-19 13:48:08.000000000 +0200
@@ -23,7 +23,7 @@
   if [ -n "$type" ]; then cmdln="$cmdln -t $type"; fi
   if [ -n "$responsiveness" ]; then cmdln="$cmdln -r $responsiveness"; fi
   if [ -n "$sample_rate" ]; then cmdln="$cmdln -s $sample_rate"; fi
-  if [ -n "$repeat_type" ]; then cmdln="$cmdln -R$repeat_type"; fi
+  if [ -n "$repeat_type" -a "$repeat_type" != "none" ]; then cmdln="$cmdln -R$repeat_type"; fi
   # Yes, this /IS/ correct! There is no space after -R!!!!!!
   # I reserve the right to throw manpages at anyone who disagrees.
   if [ -n "$append" ]; then cmdln="$cmdln $append"; fi
Thanks,
Gian Piero.
-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1
Locale: LANG=it_IT.UTF8@euro, LC_CTYPE=it_IT.UTF8@euro
Versions of packages gpm depends on:
ii  debconf [debconf-2.0]       1.4.31       Debian configuration management sy
ii  debianutils                 2.8.4        Miscellaneous utilities specific t
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand
-- debconf information:
* gpm/responsiveness:
* gpm/repeat_type:
* gpm/append:
  gpm/gpmconfig_fix: true
* gpm/restart: true
* gpm/sample_rate:
* gpm/type: autops2
* gpm/device: /dev/input/mice
* gpm/restart_default: true