From f2242f45d73a09c21f0dedb852c9cafa91abb40a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Feb 2008 05:40:41 +0000 Subject: [PATCH] --- upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.py b/upload.py index 97d654dc90..88eef977e0 100644 --- a/upload.py +++ b/upload.py @@ -66,11 +66,11 @@ def upload_demo(): check_call('''scp /tmp/txt-demo.zip castalia:%s/'''%(DOWNLOADS,)) def upload_installers(exe, dmg): - if exe and os.path.exists(exe): + if exe and os.path.exists(os.path.join('dist', exe)): check_call('''ssh castalia rm -f %s/libprs500\*.exe'''%(DOWNLOADS,)) check_call('''scp dist/%s castalia:%s/'''%(exe, DOWNLOADS)) check_call('''ssh castalia rm -f %s/libprs500\*.dmg'''%(DOWNLOADS,)) - if dmg and os.path.exists(dmg): + if dmg and os.path.exists(os.path.join('dist', dmg)): check_call('''scp dist/%s castalia:%s/'''%(dmg, DOWNLOADS)) check_call('''ssh castalia chmod a+r %s/\*'''%(DOWNLOADS,)) check_call('''ssh castalia /root/bin/update-installer-links %s %s'''%(exe, dmg))