albericocolaco / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
0 stars 0 forks source link

Discard outdated receipts from receipts directory and receipts db #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run Git package installer
2. Download newer version
3. Update (run newer Git package installer overwriting the older files)

What is the expected output?

Only the newest GitOSX.Installer.git*.*.pkg.* BOM and Plist files should resist 
after installation in /var/db/receipts, all outdated BOMs and Plist files from 
previous GitOSX installations should be discarded/deleted either in 
/var/db/receipts as well as in /Library/Receipts/InstallHistory.plist.

What do you see instead?

All stored BOM and Plist files from previous GitOSX installations are 
cluttering up the /var/db/receipts directory and 
/Library/Receipts/InstallHistory.plist database. This clutter is needless and 
should be avoided.

What version of the product are you using?
git-*-x86_64-leopard.dmg

On what operating system?
Mac OS X 10.6.7 (10J869)

Please provide any additional information below.

Create a postinstall script, which discards/deletes outdated GitOSX.Installer 
BOMs and Plist files and entries from previous installs in /var/db/receipts and 
/Library/Receipts/InstallHistory.plist after having successfully installed a 
newer version of Git.

Additionally:

Add to uninstall.sh:

sudo rm /var/db/receipts/GitOSX.Installer.git*.*.pkg.*

and/or better:

sudo pkgutil --forget --pkgs=GitOSX\.Installer\.git[A-Za-z0-9]*\.[a-z]*.pkg

Original issue reported on code.google.com by sie...@gmail.com on 19 Jun 2011 at 7:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok.,,

Original comment by earljoseph27vergara@gmail.com on 26 Jul 2013 at 6:52