Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nicer message
  • Loading branch information
ralsina committed Jun 8, 2015
1 parent b8349d0 commit 94c5535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nikola/plugins/command/version.py
Expand Up @@ -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.