mirror of
https://github.com/openwrt/packages.git
synced 2025-02-12 05:48:07 +00:00
12 lines
198 B
Bash
12 lines
198 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-packaging ] || exit 0
|
|
|
|
python3 - << EOF
|
|
import sys
|
|
from packaging.version import Version, parse
|
|
v1 = parse("1.0a5")
|
|
v2 = Version("1.0")
|
|
sys.exit(0 if v1 < v2 else 1)
|
|
EOF
|