Package: pioneers-console
Version: 0.12.2-2
Severity: serious
Justification: Policy 10.4

I ran into a couple of problems with pioneer-console's maintainer
scripts, which evidently expect /bin/sh to be bash.  For one thing,
the postinst's use of

test ! -r "$CONFFILE" || . "$CONFFILE"

fails if the configuration file contains no content (as it does by
default), as test's non-zero exit status ends up standing.  I'd
suggest rewriting that as

if test -r "$CONFFILE"; then
    . "$CONFFILE"
fi

which should be safe from such problems and only slightly more
verbose.

Anyway, once I got past that problem, I ran into another: the config
and postinst scripts both use the bashism "function x" rather than the
portable "x ()".

Could you please either fix your scripts to work under other shells
(posh, dash) or else explicitly run them under bash?

Thanks!

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages pioneers-console depends on:
ii  cdebconf [debconf-2.0]        0.131      Debian Configuration Management Sy
ii  debconf [debconf-2.0]         1.5.22     Debian configuration management sy
ii  libc6                         2.7-12     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.16.3-2   The GLib library of C routines
ii  pioneers-console-data         0.12.2-2   the Settlers of Catan board game -

pioneers-console recommends no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to