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 commented Jun 5, 2015

Added a --check option to nikola version

ralsina added 2 commits Jun 5, 2015
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)

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska Jun 6, 2015

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

This comment has been minimized.

Copy link
@ralsina

ralsina Jun 8, 2015

Author Member

Good idea.

ralsina added 2 commits Jun 8, 2015
@Kwpolska Kwpolska added the enhancement label Jun 8, 2015
@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
0 of 3 checks passed
0 of 3 checks passed
continuous-integration/appveyor Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build is in progress
Details
@Kwpolska Kwpolska deleted the do-1767 branch Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.