Re: Package selection in postinstall
Re: Package selection in postinstall
- Subject: Re: Package selection in postinstall
- From: Stephane Sudre <email@hidden>
- Date: Mon, 12 Nov 2012 16:54:14 +0100
On Mon, Nov 12, 2012 at 2:19 PM, Andrew Keller <email@hidden> wrote:
> Hello all,
>
> Does the postinstall script have access to a list of the packages that the user selected for installation?
AFAIK, it does not.
It is possible to get that list through an Installer Plugin via the
InstallerState class.
Assuming a finalize invisible package would be added to the
distribution, I don't remember reading there's an official warranty
that the receipts data base is up to date once the other packages have
been installed. Also, the fact that a package is listed in the
receipts data base is not sufficient in itself to state the choice for
this package was selected (it could come from another installation).
What could be possible to do (and is tedious) is to have a post
installation script for each package that writes to a specific
temporary location a file to log it has been installed and then check
these files from the finalize package scripts.
If one doesn't want to modify the existing packages for this, it's
still possible (but even more tedious) to achieve by "merging" each
existing package with a package including only the relevant post
installation script.
_______________________________________________
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