<div>Hi,</div><div><br></div><div>Sugar-jhbuild depends on lsb-release to decide the distribtuion. But there are some distros which are not lsb-release compatable, for eg Archlinux. Can anyone sugest any another general procedure by which we can decide the distribution?</div>
<div><br></div><div><br></div><div><br></div><div>file: sjhbuild/sysdeps.py</div><div>...</div><div>def get_distribution():</div><div>    global _cached_dname, _cached_dversion</div><div><br></div><div>    if _cached_dname:</div>
<div>        return _cached_dname, _cached_dversion</div><div><br></div><div>    if 'SJH_DISTRIBUTION' in os.environ:</div><div>        _cached_dname, _cached_dversion = \</div><div>            os.environ['SJH_DISTRIBUTION'].split('-')</div>
<div>        return _cached_dname, _cached_dversion</div><div><br></div><div>    try:</div><div>        _cached_dname = _pipe_lower(['lsb_release', '-is'])</div><div>        _cached_dversion = _pipe_lower(['lsb_release', '-rs'])</div>
<div><br></div><div>    except OSError:</div><div>        sys.stderr.write('ERROR: Could not run lsb_release. Is it installed?\n')</div><div><br></div><div>    return _cached_dname, _cached_dversion</div><div><br>
</div><br>-- <br>Regards,<br><br>Dhananjay.<br><br>----------------------------------------------<br>Use Free Software...<br>Defend Your Freedom<br><br>