Commit c4902375 authored by Jérome Perrin's avatar Jérome Perrin

grid: Fix OS detection

fixup 31864c5c to make test pass
parent df0f1bd1
...@@ -55,9 +55,10 @@ def _debianize(os): ...@@ -55,9 +55,10 @@ def _debianize(os):
minor releases would be seen as not compatible to each other. minor releases would be seen as not compatible to each other.
""" """
distname, version, id_ = os distname, version, id_ = os
distname = distname.lower() distname_lower = distname.lower()
if distname == 'debian' and '.' in version: if distname_lower == 'debian' and '.' in version:
version = version.split('.')[0] version = version.split('.')[0]
distname = distname_lower
return distname, version, id_ return distname, version, id_
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment