Commit 1dd30e62 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Remove whitespaces from getting uname

parent 842df8ac
......@@ -230,13 +230,13 @@ def undebianize(branch):
def get_distribution_codename():
codename = sh.uname().lower()
codename = sh.uname().lower().strip()
if codename == "linux":
# lets try to be more specific using lsb_release
output = sh.lsb_release("-c") # pylint: disable=E1101
_, codename = output.split("\t")
except sh.CommandNotFound:
except sh.CommandNotFound as e:
codename = codename.strip()
return codename
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