This repository has been archived by the owner. It is now read-only.
Browse files

[python2-oauth2] Use new version comparison script

  • Loading branch information...
chenxiaolong committed Jan 27, 2013
1 parent 0e3afe9 commit 11413072973895bc825f6bdc8e33c4f4bde73f3a
Showing with 3 additions and 10 deletions.
  1. +3 −10 python2-oauth2/
@@ -1,15 +1,8 @@
#!/usr/bin/env bash
source "$(dirname ${0})/PKGBUILD"
-echo "Getting latest Ubuntu version..."
-UBUNTU_VER=($(wget -q '' -O - | sed -n 's/.*>python-oauth2_\(.*\)-\(.*\)\.debian\.tar\.gz<.*/\1 \2/p'))
-echo "Getting latest upstream version..."
-UPSTREAM_VER=$(wget -q '' -O - | sed -n 's/.*>oauth2-\(.*\)\.tar\.gz<.*/\1/p')
-echo ""
+source "$(dirname ${0})/../"
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.