projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52620ad
)
django: allow test.sh only for python3-django package
author
Alexandru Ardelean
<
[email protected]
>
Wed, 13 Aug 2025 14:43:38 +0000
(17:43 +0300)
committer
Alexandru 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
patch
|
blob
|
history
diff --git
a/lang/python/django/test.sh
b/lang/python/django/test.sh
index b6e9a1ed6807ab991749708313e9b679a9e97036..6204b89325a8f172ebd5c073c608dfb34e2c6e9e 100644
(file)
--- a/
lang/python/django/test.sh
+++ b/
lang/python/django/test.sh
@@
-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'"