Yann Cointepas added the comment:

I can easily do the patch to ignore symlinks and /etc/lsb-release but I am
not sure of the appropriate way to look for lsb_update command, is
distutils.spawn.find_executable( 'lsb_release' ) ok ?
If you need the patch earlier than begining of next week, you should do it.
Otherwise I can make it.

On Mandriva 2007.1, the command exists if the package "lsb-release" is
installed. I do not know if it is always installed (I selected a checkbox
"LSB" during install, this checkbox is unchecked by default).
The output is:

[EMAIL PROTECTED] ~]$ lsb_release -a
LSB Version:
lsb-3.1-ia32:lsb-3.1-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:cxx-3.0-ia32:cxx-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:lsb-3.0-ia32:lsb-3.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID: MandrivaLinux
Description:    Mandriva Linux
Release:        2007.1
Codename:       Official

[EMAIL PROTECTED] ~]$ lsb_release -i
Distributor ID: MandrivaLinux

[EMAIL PROTECTED] ~]$ lsb_release -d
Description:    Mandriva Linux

[EMAIL PROTECTED] ~]$ lsb_release -r
Release:        2007.1

On Fedora 4 (rather old) , the command is in the package "redhat-lsb".

yc176684:src$ lsb_release -a
LSB Version:    1.3
Distributor ID: FedoraCore
Description:    Fedora Core release 4 (Stentz)
Release:        4
Codename:       Stentz

yc176684:src$ lsb_release -i
Distributor ID: FedoraCore

yc176684:src$ lsb_release -d
Description:    Fedora Core release 4 (Stentz)

yc176684:src$ lsb_release -r
Release:        4

On Fedora 7, the command is in the package "redhat-lsb" and seem to be
installed by default.

gargamel:riviere% lsb_release -a
LSB
Version:    :core-3.1-ia32:core-3.1-noarch:
graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: Fedora
Description:    Fedora release 7 (Moonshine)
Release:        7
Codename:       Moonshine

gargamel:riviere% lsb_release -i
Distributor ID: Fedora

gargamel:riviere% lsb_release -d
Description:    Fedora release 7 (Moonshine)

gargamel:riviere% lsb_release -r
Release:        7

On 10/25/07, Raghuram Devarakonda < [EMAIL PROTECTED]> wrote:
>
>
> Raghuram Devarakonda added the comment:
>
> I think it is safe to ignore lsb-release. In fact, there seems to be a
> command "lsb_release" that gives information about distribution. On my
> SuSE box, this is what I get:
>
> marvin:~# lsb_release -i
> Distributor ID: SUSE LINUX
> marvin:~# lsb_release -d
> Description:    SUSE LINUX 10.1 (i586)
> marvin:~# lsb_release -r
> Release:        10.1
>
> sapetnioc, can you check if this command exists on your system and if
> so, it's output? platform.dist() can check for this command's existence
> and if present, can perhaps use it to glean distro information. Please
> let me know if you want to write the patch. I will do it otherwise.
>
> ----------
> nosy: +draghuram
>
> __________________________________
> Tracker <[EMAIL PROTECTED] >
> <http://bugs.python.org/issue1322 >
> __________________________________
>

Added file: http://bugs.python.org/file8609/unnamed

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1322>
__________________________________
I can easily do the patch to ignore symlinks and /etc/lsb-release but I am not 
sure of the appropriate way to look for lsb_update command, is 
distutils.spawn.find_executable( &#39;lsb_release&#39; ) ok ?<br>If you need 
the patch earlier than begining of next week, you should do it. Otherwise I can 
make it.
<br><br>On Mandriva 2007.1, the command exists if the package 
&quot;lsb-release&quot; is installed. I do not know if it is always installed 
(I selected a checkbox &quot;LSB&quot; during install, this checkbox is 
unchecked by default).
<br>The output is:<br><br>[EMAIL PROTECTED] ~]$ lsb_release -a<br>LSB 
Version:&nbsp;&nbsp;&nbsp; 
lsb-3.1-ia32:lsb-3.1-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:cxx-3.0-ia32:cxx-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:lsb-3.0-ia32:lsb-3.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch

<br>Distributor ID: MandrivaLinux<br>Description:&nbsp;&nbsp;&nbsp; Mandriva 
Linux<br>Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
2007.1<br>Codename:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Official<br><br>[EMAIL 
PROTECTED] ~]$ lsb_release -i<br>Distributor ID: MandrivaLinux<br><br>[EMAIL 
PROTECTED] ~]$ lsb_release -d
<br>Description:&nbsp;&nbsp;&nbsp; Mandriva Linux<br><br>[EMAIL PROTECTED] ~]$ 
lsb_release -r<br>Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
2007.1<br><br><br>On Fedora 4 (rather old) , the command is in the package 
&quot;redhat-lsb&quot;.<br><br>yc176684:src$ lsb_release -a
<br>

LSB Version:&nbsp;&nbsp;&nbsp; 1.3<br>
Distributor ID: FedoraCore<br>
Description:&nbsp;&nbsp;&nbsp; Fedora Core release 4 (Stentz)<br>
Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4<br>
Codename:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stentz<br><br>yc176684:src$ 
lsb_release -i<br>
Distributor ID: FedoraCore<br><br>yc176684:src$ lsb_release -d<br>
Description:&nbsp;&nbsp;&nbsp; Fedora Core release 4 
(Stentz)<br><br>yc176684:src$ lsb_release -r<br>
Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4<br>
<br><br>On Fedora 7, the command is in the package &quot;redhat-lsb&quot; and 
seem to be installed by default.<br><br>gargamel:riviere% lsb_release 
-a<br>LSB<br>Version: &nbsp; &nbsp;:core-3.1-ia32:core-3.1-noarch<div 
style="direction: ltr;">
:graphics-3.1-ia32:graphics-3.1-noarch<br>Distributor ID: 
Fedora<br>Description: &nbsp; &nbsp;Fedora release 7 (Moonshine)<br>Release: 
&nbsp; &nbsp; &nbsp; &nbsp;7<br>Codename: &nbsp; &nbsp; &nbsp; 
Moonshine<br><br>gargamel:riviere% lsb_release -i<br>Distributor ID: Fedora
<br><br>gargamel:riviere% lsb_release -d<br>Description: &nbsp; &nbsp;Fedora 
release 7 (Moonshine)<br><br>gargamel:riviere% lsb_release -r<br>Release: 
&nbsp; &nbsp; &nbsp; &nbsp;7<br></div><br><div><span class="gmail_quote">On 
10/25/07, <b class="gmail_sendername">
Raghuram Devarakonda</b> &lt;<a href="mailto:[EMAIL PROTECTED]" target="_blank" 
onclick="return top.js.OpenExtLink(window,event,this)">
[EMAIL PROTECTED]</a>&gt; wrote:</span><blockquote class="gmail_quote" 
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 
padding-left: 1ex;">
<br>Raghuram Devarakonda added the comment:<br><br>I think it is safe to ignore 
lsb-release. In fact, there seems to be a<br>command &quot;lsb_release&quot; 
that gives information about distribution. On my<br>SuSE box, this is what I 
get:
<br><br>marvin:~# lsb_release -i<br>Distributor ID: SUSE LINUX<br>marvin:~# 
lsb_release -d<br>Description:&nbsp;&nbsp;&nbsp;&nbsp;SUSE LINUX 10.1 
(i586)<br>marvin:~# lsb_release 
-r<br>Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10.1<br><br>sapetnioc,
 can you check if this command exists on your system and if
<br>so, it&#39;s output? platform.dist() can check for this command&#39;s 
existence<br>and if present, can perhaps use it to glean distro information. 
Please<br>let me know if you want to write the patch. I will do it otherwise.
<br><br>----------<br>nosy: 
+draghuram<br><br>__________________________________<br>Tracker &lt;<a 
href="mailto:[EMAIL PROTECTED]" target="_blank" onclick="return 
top.js.OpenExtLink(window,event,this)">[EMAIL PROTECTED]
</a>&gt;<br>&lt;<a href="http://bugs.python.org/issue1322"; target="_blank" 
onclick="return 
top.js.OpenExtLink(window,event,this)">http://bugs.python.org/issue1322
</a>&gt;<br>__________________________________<br></blockquote></div><br><br 
clear="all"><br>-- <br>Yann 
Cointepas&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel:
 +33 1 69 08 78 31<br>CEA - 
Neurospin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax: +33 
1 69 08 79 80<br>Bâtiment 145, Point Courrier 156
<br>91191 Gif-sur-Yvette cedex, France

_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to