don't error out of symlink doesn't exist initially
This commit is contained in:
parent
c79317f594
commit
978f4f0aba
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user