[tbb-commits] [tor-browser-bundle/maint-6.5] Bug 21833 Update libvirt check for 16.10

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


commit 667a61b60c9caf3feb1d96d4c19b4a3d7f2d6ca5
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 858fd4d..711698d 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 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 tbb-commits mailing list