[Popcon-developers] Update to postinst

Bill Allombert allomber@math.u-bordeaux.fr
Tue, 13 Apr 2004 19:53:53 +0200


On Tue, Apr 13, 2004 at 07:00:20PM +0200, Petter Reinholdtsen wrote:
> [Bill Allombert]
> > Hello Petter,
> > 
> > I plan to update the postinst because:
> > 
> > 1) Apparently the fix for EMPTYID is not working dur e to a typo
> > in the sed regexp:
> > -               s/^MY_HOSTID="\\?$EMPTYID"\\?/MY_HOSTID=\"$MY_HOSTID\"/; \
> > +               s/^MY_HOSTID=\"\\?$EMPTYID\"\\?/MY_HOSTID=\"$MY_HOSTID\"/; \
> 
> Strange.  It worked when I tested it.  Did sed change behavoiur?

No, the problem is with the shell quote, not sed.

> Anyway, I assume I was just messing up while testing. :/

Anyway, looking a popcon.d.o, there are no more EMPTYID MY_HOSTID in the
database...

Should we stop fixing it in the postinst ?

Cheers,
Bill.