Commit 0a1fe03e authored by Jérome Perrin's avatar Jérome Perrin Committed by Lu Xu

grid: Fix OS detection

fixup 31864c5c to make test pass
parent 0889395f
......@@ -55,9 +55,10 @@ def _debianize(os):
minor releases would be seen as not compatible to each other.
"""
distname, version, id_ = os
distname = distname.lower()
if distname == 'debian' and '.' in version:
distname_lower = distname.lower()
if distname_lower == 'debian' and '.' in version:
version = version.split('.')[0]
distname = distname_lower
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