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

Re: how to test for architecture in perl base pre/postinst scripts ?



On Mon, 23 Feb 2004, Sven Luther wrote:
> Yeah, seems reasonable, now i only need to find out how to call it
> from perl.

%arch = split /[=\n]/, qx(dpkg-architecture) or die q(dpkg-architecture failed);

should do nicely. [dpkg-architecture should exist once dpkg has been
unpacked...]


Don Armstrong

-- 
She was alot like starbucks.
IE, generic and expensive.
 -- hugh macleod http://www.gapingvoid.com/batch3.htm

http://www.donarmstrong.com
http://www.anylevel.com
http://rzlab.ucr.edu



Reply to: