Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/rospkg/os_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ def __init__(self, lsb_name, get_version_fn=None):
self.lsb_info = None

def is_os(self):
return self.lsb_info is not None and self.lsb_info[0] == self.lsb_name
if self.lsb_info is None:
return False
# Work around platform returning 'Ubuntu' and distro returning 'ubuntu'
return self.lsb_info[0].lower() == self.lsb_name.lower()

def get_version(self):
if self.is_os():
Expand Down