Re: how to test for architecture in perl base pre/postinst scripts ?
On Mon, Feb 23, 2004 at 06:42:08PM +0100, Jochen Friedrich wrote:
> Hi Sven,
> > I am searching to test for architecture in perl written pre/post inst
> > scripts. I am not perl fluetn though, and i don't know what is the
> > correct way of querying for architecture in those scripts. Sure i could
> > parse the uname output or something such, but maybe there is already a
> > prefered way of doing this ?
> You could use dpkg-architecture for this.
Yeah, seems reasonable, now i only need to find out how to call it from
perl. I hope that this is available when using debootstrap, since it is
needed in base-install on debian-installer.