don't set symlink in dry mode

This commit is contained in:
Ludwig Nussel
2014-08-14 17:55:45 +02:00
parent a1b5edc5a8
commit d07709144a

View File

@@ -110,8 +110,8 @@ else:
s.sendmail(options.sender, [msg['To']], msg.as_string())
s.quit()
tmpfn = os.path.join(os.path.dirname(__file__), ".announcer-current-version")
os.symlink(version, tmpfn)
os.rename(tmpfn, current_fn)
tmpfn = os.path.join(os.path.dirname(__file__), ".announcer-current-version")
os.symlink(version, tmpfn)
os.rename(tmpfn, current_fn)
# vim: sw=4 et