diff options
author | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-07-15 18:35:17 +0200 |
---|---|---|
committer | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-07-15 18:46:13 +0200 |
commit | bcbf8e1a66947e720978f4e0b836446cb226e0ce (patch) | |
tree | 4f36bc7765bfb1822480267126a88c5f7e800e2d | |
parent | Added implementation of basic db functions (diff) | |
download | collagen-bcbf8e1a66947e720978f4e0b836446cb226e0ce.tar.gz collagen-bcbf8e1a66947e720978f4e0b836446cb226e0ce.tar.bz2 collagen-bcbf8e1a66947e720978f4e0b836446cb226e0ce.zip |
Matchbox host/port loading from config
-rw-r--r-- | src/tinderbox/__init__.py | 6 | ||||
-rw-r--r-- | src/tinderbox/config.py | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py index 87ef1f7..863a848 100644 --- a/src/tinderbox/__init__.py +++ b/src/tinderbox/__init__.py @@ -22,9 +22,9 @@ from logger import log, init_logging class Tinderbox(object): - def __init__(self, hostname, port): - self.hostname = hostname - self.port = port + def __init__(self): + self.hostname = config.MATCHBOX_HOST + self.port = config.MATCHBOX_PORT self.sock = None self.settings = portage.config(clone=portage.settings) diff --git a/src/tinderbox/config.py b/src/tinderbox/config.py index f139688..d6c1d48 100644 --- a/src/tinderbox/config.py +++ b/src/tinderbox/config.py @@ -1,3 +1,5 @@ +MATCHBOX_HOST="localhost" +MATCHBOX_PORT=10000 MK_CHROOT_SCRIPT="/usr/sbin/mktinderboxchroot.sh" STAGE_TARBALL="/data/downloads/stage3-i686-2008.0.tar.bz2" |