Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1767 #1788

Merged
merged 4 commits into from Jun 8, 2015
Merged

fix #1767 #1788

merged 4 commits into from Jun 8, 2015

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Jun 5, 2015

Added a --check option to nikola version

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea.

@Kwpolska Kwpolska added this to the 7.6.0 milestone Jun 8, 2015
Kwpolska added a commit that referenced this pull request Jun 8, 2015
@Kwpolska Kwpolska merged commit bbf0e4a into master Jun 8, 2015
@Kwpolska Kwpolska deleted the do-1767 branch June 8, 2015 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants