fba4e41bfa
- add ha-cloud patches and dependencies - remove hds-cb for now
25 lines
758 B
Bash
Executable File
25 lines
758 B
Bash
Executable File
#!/bin/sh
|
|
export PYTHON_KEYRING_BACKEND="keyring.backends.null.Keyring"
|
|
|
|
rm -f *.whl aliyun*.tar.gz boto3-*.tar.gz gcloud-*.tar.gz pycrypto-*.tar.gz pyroute2-*.tar.gz
|
|
sed -i -n -E '/\(fence-agents-/p' sources
|
|
sha512sum --tag requirements-*.txt >> sources
|
|
|
|
for x in aliyun aws azure google; do
|
|
echo "# $x" >> sources
|
|
pip download -r requirements-$x.txt | awk '/Saved/{gsub("./", "", $2); print $2}' | sort | xargs sha512sum --tag >> sources
|
|
done
|
|
|
|
awk 'NR<6{next} /^# /{print}; /^[^#]/{gsub("[()]", "", $2); printf "Source%d: %s\n", 1000+c++, $2}' sources
|
|
|
|
sed -i '/^#/d' sources
|
|
|
|
if ! git diff --quiet sources; then
|
|
cat << EOF
|
|
|
|
Upload new sources by running:
|
|
awk '/^[^#]/{gsub("[()]", "", \$2); printf "%s ", \$2}' sources | xargs rhpkg new-sources
|
|
|
|
EOF
|
|
fi
|