[PATCH] Hack an os.chdir('~/upgrade-server') so that we can correctly download builds.
Michael Stone
michael at laptop.org
Fri Jan 18 18:49:03 EST 2008
This should probably become a command-line option (or even an inference based
on the path to the python script being executed).
---
upserv.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/upserv.py b/upserv.py
index fa4fb17..216104f 100755
--- a/upserv.py
+++ b/upserv.py
@@ -2,7 +2,7 @@
"""Upgrade Server."""
from __future__ import with_statement
from subprocess import call, check_call, Popen, PIPE
-import os.path, random, re, select, socket, sys, tempfile, time, urllib, traceback
+import os.path, random, re, select, socket, sys, tempfile, time, urllib, traceback, os
from string import Template
# CONFIGURATION. override these settings in config.py if you like.
@@ -176,6 +176,7 @@ def try_to_install_build(build):
return str(sys.exc_value)
def main ():
+ os.chdir('/home/upserv/upgrade-server')
from optparse import OptionParser
parser = OptionParser(usage='%prog [options] server|install <buildno>')
(options, args) = parser.parse_args()
--
1.5.3.3
More information about the Devel
mailing list