I think these contructs in the maintainer scripts are really a bad idea:
package=`dirname $0`
. $package/hwtest.postrm

or:
name=`basename $0 .postrm`
base=`echo $name | cut -d "-" -f "1"`
file="/etc/$base.d/$name.ini"


This is assuming a bit too much about dpkg internal and it makes the packages 
really fragile; if you want to share maintainer snippets, either use real file 
and check for their existence, or copy the script into the package's maintainer 
script during build.

-- 
upgrade from hwtest to checkbox leaves stale files in /usr/share/hwtest
https://bugs.launchpad.net/bugs/320991
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to