ltsp: codename detection code not useful for stable (Closes: #925173).
authorWolfgang Schweer <wschweer@arcor.de>
Wed, 20 Mar 2019 18:50:13 +0000 (19:50 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Wed, 29 May 2019 20:02:07 +0000 (21:02 +0100)
While it made sense to use /etc/debian_release in testing (the file contains
text like 'buster/sid') it fails to work in stable (the file content is a plain
version number like 9.8). 'lsb_release --short --codename' is supposed to work
in stable also in standalone mode.

(Vagrant Cascadian made minor edit to use longhand options consistent
with upstream).

Gbp-Pq: Name fix-codename-detection.patch

server/share/ltsp/plugins/ltsp-build-client/Debian/000-basic-configuration

index 30d04dcff33b691638b82262c7c6a96d038e198b..d075d9df13dfdf6ed3fc26775df54be855d010c6 100644 (file)
@@ -2,7 +2,7 @@ case "$MODE" in
     configure)
         ARCH=${ARCH:-"$(dpkg --print-architecture)"}
         APT_GET_OPTS=${APT_GET_OPTS:-"-y"}
-        DIST=${DIST:-"$(cat /etc/debian_version | cut -d'/' -f1)"}
+        DIST=${DIST:-"$(lsb_release --short --codename)"}
         MIRROR=${MIRROR:-"http://deb.debian.org/debian"}
         COMPONENTS=${COMPONENTS:-"main"}
         EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}