Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
[python2-oauth2] Use new version comparison script
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-Long Chen committed Jan 27, 2013
1 parent 0e3afe9 commit 1141307
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions python2-oauth2/compare_versions.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
#!/usr/bin/env bash

source "$(dirname ${0})/PKGBUILD"

echo "Getting latest Ubuntu version..."
UBUNTU_VER=($(wget -q 'http://packages.ubuntu.com/quantal/source/python-oauth2' -O - | sed -n 's/.*>python-oauth2_\(.*\)-\(.*\)\.debian\.tar\.gz<.*/\1 \2/p'))

echo "Getting latest upstream version..."
UPSTREAM_VER=$(wget -q 'http://pypi.python.org/pypi/oauth2' -O - | sed -n 's/.*>oauth2-\(.*\)\.tar\.gz<.*/\1/p')

echo ""
source "$(dirname ${0})/../version_checker.sh"

echo -e "PKGBUILD version: ${pkgver}"
echo -e "Upstream version: ${UPSTREAM_VER}"
echo -e "Ubuntu version: ${UBUNTU_VER[@]}"
echo -e "Upstream version: $(get_pypi_version oauth2)"
echo -e "Ubuntu version: $(get_ubuntu_version python-oauth2 ${1:-raring})"

0 comments on commit 1141307

Please sign in to comment.