I've now seen this behavior as you stated in action. You're dead on target. It will keep going up the file system directory hierarchy until it deletes all ancestors of the installation unless there is another package that is also installed under an ancestor.
Odd that this is not directly stated somewhere since it can spook people out like it did me.
-----BEGIN PGP SIGNED MESSAGE-----Hi Alex,
I'm still looking for an official comment from the dpkg developers
regarding this behavior but haven't found one yet. It's not mentioned in
the man pages and neither in the package maintainer guide.
So far I can only tell you what I have found out while creating various
packages for Debian. I'll let you know if I come across some online
Alex Karasulu wrote:
> Oh that's great. I guess you're quoting some source online?
-----BEGIN PGP SIGNATURE-----iD8DBQFIA9pfhuoBH16pp9gRAj6lAKCT5+rQwBuX/HTwvRKlRqnf32xvWwCfZnXD
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----