Update uninstall script.
authorSteve Youngs <steve@steveyoungs.com>
Tue, 21 Apr 2015 12:48:27 +0000 (22:48 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Tue, 21 Apr 2015 12:48:27 +0000 (22:48 +1000)
commite1c38953b0b56878df6aed7cf68a4ed79ee644f3
tree7f3653ca38e96a8897e92a8f86c437f305aeae8e
parent38eeb8e641bc8f59d5887794994d1b18a3b1a2ab
Update uninstall script.

With this changeset the uninstall script should be a lot more
robust. "sub-packages" are handled, directories are only removed if they
are empty, and something more proactive is done about setuid files.

* usr/lib/pkgusr/uninstall_package (usage): Reword it, taking into
account needing pkgname arg.
(check_suid): New.
(dry_run): Use it.
(run): Ditto.
Handle empty directories more intelligently.
Don't wipe out the .project file if uninstalling a "sub-pkg".

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
usr/lib/pkgusr/uninstall_package