[tor-commits] [tor-browser-bundle/master] Bug 16661: check update_responses dependencies in check-prerequisites.sh

gk at torproject.org gk at torproject.org
Fri Aug 21 07:13:24 UTC 2015


commit 569d57637d127d4719cd3de0ba13f5430acddfd4
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Thu Aug 20 15:40:28 2015 +0200

    Bug 16661: check update_responses dependencies in check-prerequisites.sh
---
 gitian/check-prerequisites.sh |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gitian/check-prerequisites.sh b/gitian/check-prerequisites.sh
index 6111125..93ac158 100755
--- a/gitian/check-prerequisites.sh
+++ b/gitian/check-prerequisites.sh
@@ -60,6 +60,23 @@ else
   exit 1
 fi
 
+update_responses_pkg="libyaml-perl libfile-slurp-perl libxml-writer-perl libio-captureoutput-perl libfile-which-perl libparallel-forkmanager-perl libxml-libxml-perl libwww-perl"
+missing_pkg=''
+for pkg in $update_responses_pkg
+do
+    if ! dpkg -s $pkg 2>/dev/null >/dev/null
+    then
+        missing_pkg="$missing_pkg $pkg"
+    fi
+done
+if [ -n "$missing_pkg" ]
+then
+    echo "You are missing one or more dependencies for the update_responses script"
+    echo "Please run"
+    echo " sudo apt-get install $missing_pkg"
+    exit 1
+fi
+
 if [ ! -f ../../gitian-builder/bin/gbuild ];
 then
   echo "Gitian not found. You need a Gitian checkout in ../../gitian-builder"



More information about the tor-commits mailing list