Skip to content
Permalink
Browse files
nicer message
  • Loading branch information
ralsina committed Jun 8, 2015
1 parent b8349d0 commit 94c55351e7f1c57231563958374dd665c35f118a
Showing with 4 additions and 1 deletion.
  1. +4 −1 nikola/plugins/command/version.py
@@ -68,4 +68,7 @@ def _execute(self, options={}, args=None):
data = requests.get(URL).text
doc = lxml.etree.fromstring(data.encode('utf8'))
revision = doc.findall('*//{http://usefulinc.com/ns/doap#}revision')[0].text
print("Latest version is: ", revision)
if revision == __version__:
print("Nikola is up-to-date")
else:
print("The latest version of Nikola is v{0} -- please upgrade using `pip install --upgrade Nikola=={0}` or your system package manager".format(revision))

0 comments on commit 94c5535

Please sign in to comment.