Revision 42868817 devflow/utils.py
b/devflow/utils.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
import os |
35 | 35 |
import git |
36 |
import sh |
|
36 | 37 |
from collections import namedtuple |
37 | 38 |
from configobj import ConfigObj |
38 | 39 |
|
... | ... | |
193 | 194 |
return branch.replace("debian-", "") |
194 | 195 |
else: |
195 | 196 |
return branch |
197 |
|
|
198 |
|
|
199 |
def get_distribution_codename(): |
|
200 |
output = sh.lsb_release("-c") |
|
201 |
_, codename = output.split("\t") |
|
202 |
codename = codename.strip() |
|
203 |
return codename |
Also available in: Unified diff