diff options
| -rw-r--r-- | BibTeX.py | 3 | ||||
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | updateCache.py | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -437,7 +437,8 @@ class BibTeXEntry: availability.append('<a href="%s">%s</a>' %(url,name)) if availability: - res.append(" <span class='availability'>(") + res.append([" ", " "][cached]) + res.append("<span class='availability'>(") if cached: res.append("Cached: ") res.append(", ".join(availability)) res.append(")</span>") @@ -7,5 +7,8 @@ all: clean: rm -f *~ */*~ *.pyc *.pyo +update: + $(PYTHON) updateCache.py + veryclean: clean rm -f author.html date.html topic.html bibtex.html tmp.bib diff --git a/updateCache.py b/updateCache.py index 5edda3d..75999d0 100644 --- a/updateCache.py +++ b/updateCache.py @@ -120,7 +120,7 @@ def downloadAll(bibtex, missingOnly=0): downloadFile(key, ftype, url) print "Downloaded",url except UIError, e: - print >>sys,stderr, str(e) + print >>sys.stderr, str(e) errors.append((key,ftype,url,str(e))) except (IOError, socket.error), e: msg = "Error downloading %s: %s"%(url,str(e)) |
