aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-08-30 18:02:37 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-08-30 18:02:37 +0530
commit5dc25d05986aa2b93fc610382e6b2678e31df15a (patch)
tree15a9839575b714f2bb2f9133957e8cdc7b68662d /slave/scripts
parentMount PORTAGE_DIR and DISTFILES_DIR only if they are directories. Also, (diff)
downloadautotua-5dc25d05986aa2b93fc610382e6b2678e31df15a.tar.gz
autotua-5dc25d05986aa2b93fc610382e6b2678e31df15a.tar.bz2
autotua-5dc25d05986aa2b93fc610382e6b2678e31df15a.zip
Make the slave system-installable and configurable
* Move configurable constants from const.py to config.py - These values are now overidden by /etc/autotua/slave.cfg * config.VERBOSE is overidden in slave.cfg - Fix all packages to import config.py instead - Change USE_PROXY to IGNORE_PROXY * bai bai test_modules.py. Testing is now done by executing modules * Install git-proxy-cmd.sh into /usr/bin Advantages: * python setup.py sdist * python setup.py install --root ~/autotua-slave * python setup.py help # ;-)
Diffstat (limited to 'slave/scripts')
-rwxr-xr-xslave/scripts/git-proxy-cmd.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/slave/scripts/git-proxy-cmd.sh b/slave/scripts/git-proxy-cmd.sh
new file mode 100755
index 0000000..aa9fc61
--- /dev/null
+++ b/slave/scripts/git-proxy-cmd.sh
@@ -0,0 +1,8 @@
+proxy=${http_proxy#http://}
+host=${proxy##*@}
+auth=${proxy%@*}
+if test "${auth}" != "${proxy}"; then
+ export HTTP_PROXY_USER=${auth%%:*}
+ export HTTP_PROXY_PASSWORD=${auth##*:}
+fi
+connect -H ${host} $1 $2