On Thu, Sep 20, 2001 at 02:17:43PM -0500, Adam Heath wrote: > On Wed, 19 Sep 2001, Colin Watson wrote: > > > On Wed, Sep 19, 2001 at 06:11:53PM +0200, Ola Lundqvist wrote: > > > I have a simple question. Is it possible to run dpkg -r foo > > > from within a postinst-script when using dselect or apt? > > > > > > What is the result? > > > > You can't do it directly, as dpkg has locked the status file at that > > point. The sgmltools-lite (?) maintainer tried hacking around that by > > waiting for the lock to be released once, and it immediately got a > > justifiable grave bug; the race conditions are ugly. Don't do it. > > So, then we dpkg developers should add this ability. > > Some of the code already exists to do this, it'll be a variation of > --command-pipe.
That sounds cool. Will they be runned on the end of the dpkg run or on next run? I prefer on the end of this run (or optionally the next one). Regards, // Ola > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Björnkärrsgatan 5 A.11 \ | [EMAIL PROTECTED] 584 36 LINKÖPING | | +46 (0)13-17 69 83 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / ---------------------------------------------------------------