[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit c95c5d1b57685c2eff102f809ec2cf9c865a6215
Author: Tom Ritter <tom@xxxxxxxxx>
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 ];

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits