(Arne Babenhauserheide)
2014-02-08: fix brainbug fix brainbug
diff --git a/staticsite.py b/staticsite.py --- a/staticsite.py +++ b/staticsite.py @@ -654,7 +654,7 @@ def writebugs(ui, repo, target, name): content += templates["foot"].replace("{reponame}", "<a href='../'>"+name+"</a>") try: with open(bugsfile) as bf: - if not bugsfile.read() == content: + if not bf.read() == content: raise Exception("bugfile content does not match content to write. Needs overwriting.") except Exception as e: # generic exception: If anything went wrong, we need to write the file. print "Overwriting bugs file", bugsfile, "; Reason:", e