# # # patch "monotone.py" # from [1f327cc8dba8cdc21ad01c2af0af1056f871390a] # to [335bf295f7332b6bc26baa4bbf66e394a2b58c1d] # ============================================================ --- monotone.py 1f327cc8dba8cdc21ad01c2af0af1056f871390a +++ monotone.py 335bf295f7332b6bc26baa4bbf66e394a2b58c1d @@ -139,7 +139,8 @@ 'image_uri' : "%s/%s.png" % (graphuri, urllib.quote(graph_id)), 'imagemap_uri' : "%s/%s.html" % (graphuri, urllib.quote(graph_id)), } - missing = filter(lambda x: x != True, map(lambda x: os.access(x, os.R_OK), rv.values())) + need_access = ['dot_file', 'image_file', 'imagemap_file'] + missing = filter(lambda x: x != True, map(lambda x: os.access(rv[x], os.R_OK), need_access)) if len(missing) == 0: rv['cached'] = True return rv