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

Re: tempfile <-> IO::Handle::new_tmpfile?



Dan Jacobowitz wrote:
> On Sat, Jul 11, 1998 at 03:34:57PM -0600, Marcelo E. Magallon wrote:
> > Hi,
> > 
> >    can I use IO::Handle::new_tmpfile in an Perl script that's run on
> >  postinst? The package has to Predepend on perl, right? I'll use this
> >  tempfile to modify a conffile (it *has* to be modified, it's not an
> >  option)... what's the proper way of moving the file back into place?
> >  I think:
> 
> Unless I'm mistaken, if it Depends: on perl, perl will be configured
> before its postinst is called.  Right, folks?

Only if you check that the argument is "configure".  The postinst
may be called in other situations with other arguments, and dependencies
are guaranteed for those.  (See section 6.2 of the Packaging manual)

Richard Braakman


--  
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: