Merge pull request #206 from lnussel/master

don't error out of symlink doesn't exist initially
This commit is contained in:
Alberto Planas 2014-08-11 16:26:54 +02:00
commit e2bde85dd0

View File

@ -50,9 +50,10 @@ if m is None:
version = m.group(1)
prev = os.readlink(current_fn)
if prev == version:
sys.exit(0)
if os.path.lexists(current_fn):
prev = os.readlink(current_fn)
if prev == version:
sys.exit(0)
u = urlparse(url+changes%version)
conn = httplib.HTTPConnection(u.hostname, 80)