commit 9d47b46bc5299c9ba41c49ed589caeda8ae18e5e
Author: Nicolas Vigier <bo...@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"

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

Reply via email to