Files
packages/lang/python/django/test.sh
T
Wei-Ting Yang acb028dbf7 django: bump to version 6.0.6
Fix CVE-2026-6873, CVE-2026-7666, CVE-2026-8404, CVE-2026-35193, and
CVE-2026-48587.

Full release notes:
https://docs.djangoproject.com/en/6.0/releases/6.0.6/

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-06-04 20:41:51 +03:00

21 lines
357 B
Bash

#!/bin/sh
[ "python3-django" = "$1" ] || exit 0
GOT_VER=$(/usr/bin/django-admin version)
[ "$GOT_VER" = "$2" ] || {
echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'"
exit 1
}
python3 - << EOF
import sys
import django
if (django.__version__) != "$GOT_VER":
print("Wrong version: " + django.__version__)
sys.exit(1)
sys.exit(0)
EOF