-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some distribution have lsb_release but not release number #110
Comments
The code you are referring should protect against release versions not beeing available. On which system do you observe the crash ? |
On archlinux. If I understand well being a rolling distro they don't provide a release version when one uses "lsb_release -d 2" so the next part of the code cannot extract it. $ lsb_release -a |
Hi @flagarde , |
hi, |
Hello,
In the script ilcsoft.py you are assuming the release version is always present but some distribution are rolling so don't have any release version number.
so the code below is crashing:
#fg: release_string might be empty, e.g. if lsb_release does not exis (MacOs)
self.release_number = '-1'
if len( release_string ) :
self.release_number = release_string[re.search('\d', release_string).start()]
The text was updated successfully, but these errors were encountered: