aboutsummaryrefslogtreecommitdiff
path: root/whatmaps/distro.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2022-12-30 13:07:07 +0100
committerGuido Günther <agx@sigxcpu.org>2022-12-30 13:07:07 +0100
commit7f974060a31cf366312bdf07c934712e1bc5ddad (patch)
tree0e21c4cf8c5a172bcedb56e7743f4bd682047d45 /whatmaps/distro.py
parent365cae4479e50481ad0e0f5e914263dcae9e272b (diff)
distro: Look at the first line of LSB's output
Debian outputs multiple lines nowadays
Diffstat (limited to 'whatmaps/distro.py')
-rw-r--r--whatmaps/distro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/whatmaps/distro.py b/whatmaps/distro.py
index 02a696c..d4f991b 100644
--- a/whatmaps/distro.py
+++ b/whatmaps/distro.py
@@ -133,7 +133,7 @@ def detect():
stderr=subprocess.DEVNULL)
output = lsb_cmd.communicate()[0]
if not lsb_cmd.returncode:
- id = output.strip()
+ id = output.decode().split('\n')[0].strip()
except OSError:
# id is None in this case
pass