blob: 87195703c279025e44af3acae014fb5dd349fd7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# vim: set sw=4 sts=4 et :
# Copyright: 2008 Gentoo Foundation
# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# License: GPL-2
#
# Immortal lh!
#
"""
Internal Constants
"""
import os
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'
AUTOTUA_MASTER = 'http://www.autotua.org:8000'
JOBTAGE_URI = 'git://git.overlays.gentoo.org/proj/jobtage.git'
# Autotua variables inside the chroot
CHAUTOTUA_DIR = '/tmp/autotua'
# 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
for path in os.environ['PATH'].split(':'):
if os.access(path+"/git-proxy-cmd.sh", os.X_OK):
prefix = ''
os.environ['GIT_PROXY_COMMAND'] = prefix+'git-proxy-cmd.sh'
|