mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
acb028dbf7
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>
21 lines
357 B
Bash
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
|