Re: postinst: how to do something only if upgrading
"Eloy A. Paris" <eparis@ven.ra.rockwell.com> writes:
> I agree that the postinst should ask only the first time and not
> everytime the package is updated but I just don't know how to tell
> when the package is being installed for the first time or just being
> upgraded.
Look at chapter 6 of the packaging manual, e.g.
| * postinst configure most-recently-configured-version
So you can check the values of $1 and $2 to determine if you need to
ask the question. If the package has not been configured before $2
will be null.
--
James
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: