[Frank Küster] > That's not sufficient, because /usr/local may be mounted ro, and > therefore the command may fail even if the directory is empty.
Uhhhh. There are lots of things dpkg can do which fail if filesystems are mounted read-only. I don't think this is something worth worrying about. I mean, consider the case that the dir in /usr/local is contained in the package itself, rather than handled by scripts.
signature.asc
Description: Digital signature