[Trisquel-devel] [PATCH] Use lowercase DISTRIB_CODENAME in /etc/lsb-release, fixes 11841

Legimet legimet.calc at gmail.com
Mon Jun 9 00:15:49 CEST 2014


This is a patch to use the lowercase distribution codename in /etc/lsb-release,
fixing side effects such as software-properties-* not working.

Legimet

---
 helpers/make-base-files |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/helpers/make-base-files b/helpers/make-base-files
index cf456e4..478a18b 100644
--- a/helpers/make-base-files
+++ b/helpers/make-base-files
@@ -21,7 +21,7 @@ VERSION=4
 
 . ./config
 
-CODENAME=$(echo $CODENAME | /bin/sed -e "s/\b\(.\)/\u\1/g")
+CODENAME_CAPITALIZED=$(echo $CODENAME | /bin/sed -e "s/\b\(.\)/\u\1/g")
 
 cat << EOF > debian/update-motd.d/01-banner
 #!/bin/sh
@@ -93,15 +93,15 @@ cat > etc/lsb-release <<EOF
 DISTRIB_ID=Trisquel
 DISTRIB_RELEASE=$REVISION
 DISTRIB_CODENAME=$CODENAME
-DISTRIB_DESCRIPTION="Trisquel GNU/Linux $REVISION, $CODENAME"
+DISTRIB_DESCRIPTION="Trisquel GNU/Linux $REVISION, $CODENAME_CAPITALIZED"
 EOF
 
 cat > etc/os-release <<EOF
 NAME="Trisquel GNU/Linux"
-VERSION="$REVISION, $CODENAME"
+VERSION="$REVISION, $CODENAME_CAPITALIZED"
 ID=trisquel
 ID_LIKE=debian
-PRETTY_NAME="Trisquel GNU/Linux $CODENAME ($REVISION)"
+PRETTY_NAME="Trisquel GNU/Linux $CODENAME_CAPITALIZED ($REVISION)"
 VERSION_ID="$REVISION"
 HOME_URL="https://trisquel.info/"
 SUPPORT_URL="https://trisquel.info/wiki"
-- 
1.7.9.5



More information about the Trisquel-devel mailing list