X-Git-Url: http://www.privoxy.org/gitweb/misc.html?a=blobdiff_plain;f=pkg%20content%20skeleton%2FApplications%2FPrivoxy%2Funinstall.command;h=6c308a891832f567aed150bfdcbb50f9f5a23b84;hb=9cf94dce64debdb658b9591d92493e2b74ef5872;hp=567f0a31c16ffff22abbe55715d974a807314c68;hpb=729b64e5d1865b39bb216f619a7304f4e48e81e1;p=OSXPackageBuilder.git
diff --git a/pkg content skeleton/Applications/Privoxy/uninstall.command b/pkg content skeleton/Applications/Privoxy/uninstall.command
index 567f0a3..6c308a8 100755
--- a/pkg content skeleton/Applications/Privoxy/uninstall.command
+++ b/pkg content skeleton/Applications/Privoxy/uninstall.command
@@ -69,14 +69,11 @@ if [ "$UID" -eq "$root_UID" ]; then
# Delete all items referenced by the installation package
echo 'Delete package installation receipt (ignore errors relating to other bundle identifiers).'
- # TODO overwrite PKGNAME during postinstall execution with the name of the package being installed.
- # In the meantime, the package name must be manually entered for each release.
- #pkgutil --forget PKGNAME
- # if OS X 10.5 or newer then use the new pkgutil command else simply delete the receipt file
+ # On OS X 10.5 or newer we can use the new pkgutil command else simply delete the receipt file
if [ -x /usr/sbin/pkgutil ]; then
- pkgutil --forget org.ijbswa.privoxy3019.pkg
+ pkgutil --forget org.ijbswa.privoxyPRIVOXY_VERSION.pkg
else
- rm -rf /Library/Receipts/Privoxy\ 3.0.19\ OS\ X\ 10.4.pkg
+ rm -rf /Library/Receipts/Privoxy\ PRIVOXY_VERSION\ OS\ X\ 10.4.pkg
fi
# Check the Trash, just in case the user manually removed the only obvious item from /Applications