[tor-commits] [tor-browser-bundle/hardened-builds] Bug 21833 Update libvirt check for 16.10

gk at torproject.org gk at torproject.org
Wed Apr 5 09:17:38 UTC 2017


commit 676200bdfeb1c8550082c16639ac952ff514db9c
Author: Tom Ritter <tom at ritter.vg>
Date:   Wed Mar 29 11:42:41 2017 -0500

    Bug 21833 Update libvirt check for 16.10
---
 gitian/check-prerequisites.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gitian/check-prerequisites.sh b/gitian/check-prerequisites.sh
index 530e160..d6e79fd 100755
--- a/gitian/check-prerequisites.sh
+++ b/gitian/check-prerequisites.sh
@@ -15,6 +15,7 @@ DISTRO=`cat /etc/issue | grep -Eo 'Ubuntu|Debian*'`
 if [ $DISTRO = "Ubuntu" ];
 then
   VERSION=`cat /etc/issue | grep -Eo '[0-9]{2}' | head -1`
+  FULL_VERSION=`cat /etc/issue | grep -Eo '[0-9.]+' | head -1`
   if [ "$VERSION" -ge "14" ];
   then
     dpkg -s ruby apache2 git apt-cacher-ng qemu-kvm virt-what lxc lxctl fakeroot faketime zip unzip subversion debian-archive-keyring curl pkg-config libgtk2.0-dev libglib2.0-dev torsocks tor 2>/dev/null >/dev/null
@@ -124,7 +125,15 @@ then
   then
     libvirt_group=libvirt
   else
-    libvirt_group=libvirtd
+    if [ "$FULL_VERSION" = "16.10" ];
+    then
+      libvirt_group=libvirt
+    elif [ "$VERSION" -gt "16" ];
+    then
+      libvirt_group=libvirt
+    else
+      libvirt_group=libvirtd
+    fi
   fi
   groups | grep $libvirt_group > /dev/null
   if [ $? -ne 0 ];



More information about the tor-commits mailing list