D6910: automation: use LSB_RELEASE instead of DEBIAN_VERSION

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Mon Sep 30 17:06:37 EDT 2019


Closed by commit rHG198b51d453fe: automation: use LSB_RELEASE instead of DEBIAN_VERSION (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6910?vs=16683&id=16705

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6910/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6910

AFFECTED FILES
  contrib/automation/hgautomation/linux.py

CHANGE DETAILS

diff --git a/contrib/automation/hgautomation/linux.py b/contrib/automation/hgautomation/linux.py
--- a/contrib/automation/hgautomation/linux.py
+++ b/contrib/automation/hgautomation/linux.py
@@ -187,7 +187,7 @@
 
 sudo apt-key add docker-apt-key
 
-if [ "$DEBIAN_VERSION" = "9.8" ]; then
+if [ "$LSB_RELEASE" = "stretch" ]; then
 cat << EOF | sudo tee -a /etc/apt/sources.list
 # Need backports for clang-format-6.0
 deb http://deb.debian.org/debian stretch-backports main
@@ -271,7 +271,7 @@
     zip \
     zlib1g-dev"
 
-if [ "$DEBIAN_VERSION" = "9.8" ]; then
+if [ "LSB_RELEASE" = "stretch" ]; then
     PACKAGES="$PACKAGES linux-perf"
 elif [ "$DISTRO" = "Ubuntu" ]; then
     PACKAGES="$PACKAGES linux-tools-common"



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list