Upgrading a package doesn't remove obsolete files from previous version
Upgrading a package doesn't remove obsolete files from previous version
- Subject: Upgrading a package doesn't remove obsolete files from previous version
- From: Jaroslav Ć najdr <email@hidden>
- Date: Thu, 19 Jul 2012 15:29:00 +0200
Hello everyone,
I created a flat package using pkgbuild:
pkgbuild --root ... --scripts ... --identifier ... --version ... --install-location / package.pkg
and then created a distribution package using productbuild.
I don't use any special configuration file for pkgbuild - just grab whatever there is in the 'root' directory and create a package from it.
The problem is that on upgrade, obsolete files from the old version are not deleted. Previous version, for example, installed the file:
/usr/local/myproduct/lib/hibernate-4.1.0.jar
and the new needs to replace the file with a new version - hibernate-4.1.1.jar. The old file must be removed. But it isn't. Both files are there side by side after the upgrade.
It's probably important to mention that my installer is a server product - it's not an application bundle. It is installed to the disk root, into /usr/local. The pkg-info file can contain special instruction about upgrading bundles (BundleOverwriteAction etc), but what about files that are outside a bundle? There is a recent thread (from June) about a similar problem, but it was bundle-specific and discussed BundleOverwriteAction.
Jarda
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden