Files
deb-python-eventlet/bin/pull-dnspython

15 lines
504 B
Bash
Executable File

#!/bin/bash
set -eux
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
version=${1-22e9de1d7957e558ea8f89f24e402cbbc8d50646}
upstream_path=./dnspython-${version}
if [[ ! -d "${upstream_path}" ]]; then
curl -L -odnspython.zip "https://github.com/rthalley/dnspython/archive/${version}.zip"
unzip dnspython.zip
rm dnspython.zip
fi
rm -rf eventlet/support/dns
# patch --directory=eventlet/support -p1 --normal --forward -r/dev/null <./dns.patch
mv ${upstream_path}/dns eventlet/support/
rm -rf ${upstream_path}