Comment 1 for bug 260119

Revision history for this message
Gregory Margo (gmargo) wrote :

I confirm this bug.
The problem is caused by a bash-ism in the .postinst file, which fails if /bin/sh is dash.
The following patch fixes the problem:

--- /var/lib/dpkg/info/rocksndiamonds.postinst.00 2008-01-07 15:28:52.000000000 -0800
+++ /var/lib/dpkg/info/rocksndiamonds.postinst 2008-09-12 11:11:53.000000000 -0700
@@ -159,11 +159,11 @@

 if ($ARGV[0] eq 'configure')
 {
- system 'which update-menus &>/dev/null';
+ system 'which update-menus > /dev/null 2>&1';
   if ($? == 0)
   {
     print STDERR "Update menu\n";
- system 'update-menus &> /dev/null';
+ system 'update-menus > /dev/null 2>&1';
   }
 }