[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Deb scripts idempotency [Was: Re: new packages uploaded ...]



On Wed, Dec 26, 2001 at 01:11:52PM +0100, Sven wrote:
> > deb scripts must be idempotent, postinst as above is not. You can add a
> > test that check if /usr/lib/ocaml/lablgl already esists in ld.conf, in
> > such a case the new entry is not added.
> Well, but the effect is idempotent, since having multiple time the same line
> in the file will not modify anything.

yes, but by a matter of elegancy ...

> > BTW as already proposed, we can write a simple perl script that add and
> > remove entry from ld.conf, but where we can put them?
> 
> Erm, ... why not a little ocaml program ?

sure :-)

Cheers.

-- 
Stefano "Zack" Zacchiroli <zack@cs.unibo.it> ICQ# 33538863
Home Page: http://www.cs.unibo.it/~zacchiro
Undergraduate student of Computer Science @ University of Bologna, Italy
                 - Information wants to be Open -

Attachment: pgpMzimdk0Mu6.pgp
Description: PGP signature


Reply to: