[Distutils] Re: [Python-Dev] Killing off bdist_dumb
Berthold Höllmann
bhoel@web.de
Sat Nov 16 16:41:33 2002
David Arnold <arnold@dstc.monash.edu.au> writes:
> -->"Andrew" == Andrew Kuchling <amk@amk.ca> writes:
>
> Andrew> (But how can you tell whether a Linux distribution uses RPM
> Andrew> or DEB natively?)
>
> checking for the presence of /etc/redhat_release or
> /etc/debian.version (or whatever their actual spelling is) would give
> you a good guess.
For SuSE this would be /etc/SuSE-release (at least for 8.1). Maybe
/etc/issue would provide a nice guess, if it is not changed.
> alternatively, checking for the presence of the debian installer tools
> (dpkg, etc) would tend to indicate a debian system, and if that fails,
> checking for the rpm binary should do (debian systems can have the rpm
> binary installed also, but checking for dpkg first should be ok).
I'm on a rpm based SuSE 8.1 system:
>where dpkg
/usr/bin/dpkg
>where rpm
/bin/rpm
so this does not work either.
Greetings
Berthold
--
bhoel@web.de / http://starship.python.net/crew/bhoel/
It is unlawful to use this email address for unsolicited ads
(USC Title 47 Sec.227). I will assess a US$500 charge for
reviewing and deleting each unsolicited ad.