aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'slave/autotua/const.py')
-rw-r--r--slave/autotua/const.py57
1 files changed, 28 insertions, 29 deletions
diff --git a/slave/autotua/const.py b/slave/autotua/const.py
index 7728914..db2be3f 100644
--- a/slave/autotua/const.py
+++ b/slave/autotua/const.py
@@ -10,20 +10,37 @@
Internal Constants
"""
-import os.path as osp
import os
-VERBOSE = True
-FULL_CLEAN = False
-AUTOTUA_DIR = osp.dirname(__file__) # FIXME FIXME FIXME: Ugly hack for nao.
-LOGFILE= '/var/log/autotua-slave.log'
-TMPDIR = '/var/tmp/autotua'
-TARBALL_DIR = TMPDIR+'/tarballs'
-STAGE_DIR = TARBALL_DIR+'/stages'
-JOBFILE_DIR = TARBALL_DIR+'/jobfiles'
-CHROOT_DIR = TMPDIR+'/chroots/pristine'
-WORKDIR = TMPDIR+'/work'
+VERBOSE = True
+FULL_CLEAN = False
+USE_PROXY = True
+AUTOTUA_DIR = os.path.dirname(__file__)
+LOGFILE = '/var/log/autotua-slave.log'
+TMPDIR = '/var/tmp/autotua'
+TARBALL_DIR = TMPDIR+'/tarballs'
+STAGE_DIR = TARBALL_DIR+'/stages'
+JOBFILE_DIR = TARBALL_DIR+'/jobfiles'
+CHROOT_DIR = TMPDIR+'/chroots/pristine'
+WORKDIR = TMPDIR+'/work'
+JOBTAGE_DIR = TMPDIR+'/jobtage'
+JOBTAGE_URI = 'git://git.overlays.gentoo.org/proj/jobtage.git'
+
+# Autotua variables inside the chroot
+CHAUTOTUA_DIR = '/tmp/autotua'
+
+# Example:
+# http://gentoo.osuosl.org/releases/hppa/2008.0_beta2/stages/stage3-hppa2.0-2008.0_beta2.tar.bz2
+GENTOO_MIRRORS = ['http://gentoo.osuosl.org']
+STAGE_MIRROR_PATH = 'releases/%(gen_arch)s/%(release)s/stages'
+STAGE_FILENAME = '%(stage)s-%(arch)s-%(release)s.tar.bz2'
+
+# Bind mounted inside the chroots for use if defined
+PORTAGE_DIR = ''
+DISTFILES_DIR = ''
+
+# If using http_proxy, enable git proxy support
if os.environ.has_key('http_proxy'):
prefix = AUTOTUA_DIR+'/../../scripts/'
# If git-proxy-cmd.sh is in PATH, use that
@@ -32,24 +49,6 @@ if os.environ.has_key('http_proxy'):
prefix = ''
os.environ['GIT_PROXY_COMMAND'] = prefix+'git-proxy-cmd.sh'
-# Example:
-# http://gentoo.osuosl.org/releases/hppa/2008.0_beta2/stages/stage3-hppa2.0-2008.0_beta2.tar.bz2
-GENTOO_MIRRORS = [
- 'http://gentoo.osuosl.org'
-]
-STAGE_MIRROR_PATH = 'releases/%(gen_arch)s/%(release)s/stages'
-STAGE_FILENAME = '%(stage)s-%(arch)s-%(release)s.tar.bz2'
-
-JOBTAGE_URI = 'git://git.overlays.gentoo.org/proj/jobtage.git'
-JOBTAGE_DIR = TMPDIR+'/jobtage'
-
-# Bind mounted inside the chroots for use if defined
-PORTAGE_DIR = ''
-DISTFILES_DIR = ''
-
-# Autotua variables inside the chroot
-CHAUTOTUA_DIR = '/tmp/autotua'
-
# Let's define a couple of jobs for now.
# We'll get them from the server later :P
job_list = [