[Bug 40469] post installation script slightly broken

Phaedrus camerons.web at cse.unsw.edu.au
Fri Apr 21 03:05:30 UTC 2006


Public bug reported:

Affects: kdebase kcontrol (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed


Description:
The postinst script for kcontrol 3.5.2-0ubuntu9 (latest in dapper
repository) has a small bug. It has a bunch of lines in configure
section to clean up some udev and hotplug stuff. It has the following
lines:

        rmdir /etc/hotplug/usb 2>/dev/null
        rmdir /etc/hotplug 2>/dev/null

However, if these directories do not exist, the rmdir returns non-zero,
and so does the script which means that apt thinks it failed. This can
be easily remedied by changing the lines to:

        test -d /etc/hotplug/usb && rmdir /etc/hotplug/usb 2>/dev/null
        test -d /etc/hotplug && rmdir /etc/hotplug 2>/dev/null

This will still fail if these directories aren't empty, but I think that
is the desired behaviour.

-- 
post installation script slightly broken
https://launchpad.net/bugs/40469




More information about the kubuntu-bugs mailing list