#!/bin/sh -e
# called with '--upstream-version' <version> <file>
# Download the test suite

PACKAGE_NAME=python-cpl
VERSION=$2
SUBDIR=test
UPSTREAM_BASE=https://pypi.python.org/packages/source/p/python-cpl
UPSTREAM_TAR=${UPSTREAM_BASE}/${PACKAGE_NAME}-${SUBDIR}-${VERSION}.tar.gz
TARFILENAME=$(dirname $3)/${PACKAGE_NAME}_${VERSION}.orig-${SUBDIR}.tar.gz

wget -q -O ${TARFILENAME} ${UPSTREAM_TAR}

uupdate --no-symlink "$@"
