[tor-commits] [ooni-probe/master] Extract the packages to the temporary directory.

art at torproject.org art at torproject.org
Mon Jan 27 10:39:39 UTC 2014


commit dbca14b4bbea9ceae7e7c58fb27002e2884bf5cd
Author: Arturo Filastò <art at fuffa.org>
Date:   Mon Jan 27 11:38:10 2014 +0100

    Extract the packages to the temporary directory.
---
 setup-dependencies.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup-dependencies.sh b/setup-dependencies.sh
index 87e5194..71f968e 100755
--- a/setup-dependencies.sh
+++ b/setup-dependencies.sh
@@ -172,8 +172,8 @@ install_pkg_from_pypi() {
     DO "sudo gpg --homedir /root --no-default-keyring --keyring $TMP_KEYRING --import $KEY_FILE" "0"
     DO "sudo gpg --homedir /root --no-default-keyring --keyring $TMP_KEYRING --verify $PKG_VERIFY" "0"
 
-    DO "tar xzf ${BUILD_DIR}/${PKG}" "0"
-    DO "cd ${PKG_NAME}-*" "0"
+    DO "tar xz --directory ${BUILD_DIR}/ -f ${BUILD_DIR}/${PKG}" "0"
+    DO "cd ${BUILD_DIR}/${PKG_NAME}-*" "0"
 
     echo "[+] Installing the latest ${PKG_NAME}"
     if [ "${ASSUME_YES}" -eq "0" ]; then





More information about the tor-commits mailing list