zmirror: Fix running on 32 bit systems.

(This also needs pyzephyr to be compiled for 32 bit).

(imported from commit 06e33e17be517483213d402dd75ec2ac168395d1)
This commit is contained in:
Tim Abbott 2013-01-02 14:20:22 -05:00
parent a18796961f
commit 8704f6f9d0

View file

@ -797,10 +797,11 @@ if __name__ == "__main__":
# The 'api' directory needs to go first, so that 'import humbug' won't pick # The 'api' directory needs to go first, so that 'import humbug' won't pick
# up some other directory named 'humbug'. # up some other directory named 'humbug'.
pyzephyr_lib_path = "python-zephyr/build/lib.linux-" + os.uname()[4] + "-2.6/"
sys.path[:0] = [os.path.join(options.root_path, 'api'), sys.path[:0] = [os.path.join(options.root_path, 'api'),
options.root_path, options.root_path,
os.path.join(options.root_path, "python-zephyr"), os.path.join(options.root_path, "python-zephyr"),
os.path.join(options.root_path, "python-zephyr/build/lib.linux-x86_64-2.6/")] os.path.join(options.root_path, pyzephyr_lib_path)]
# In case this is an automated restart of the mirroring script, # In case this is an automated restart of the mirroring script,
# and we have lost AFS tokens, first try reading the API key from # and we have lost AFS tokens, first try reading the API key from