django: allow test.sh only for python3-django package
authorAlexandru Ardelean <[email protected]>
Wed, 13 Aug 2025 14:43:38 +0000 (17:43 +0300)
committerAlexandru Ardelean <[email protected]>
Thu, 14 Aug 2025 12:10:10 +0000 (15:10 +0300)
No idea how this worked before.
But the '/usr/bin/django-admin' is available only for python3-django

Signed-off-by: Alexandru Ardelean <[email protected]>
lang/python/django/test.sh

index b6e9a1ed6807ab991749708313e9b679a9e97036..6204b89325a8f172ebd5c073c608dfb34e2c6e9e 100644 (file)
@@ -1,5 +1,7 @@
 #!/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'"