releng: fix git checking

Change-Id: I82ddd918311b48e596adb807b81221973113fe7a
This commit is contained in:
Jade Lovelace 2024-06-13 15:24:21 -07:00
parent e715e5fd31
commit 7be0d237e0

View file

@ -1,6 +1,8 @@
import subprocess
import json
from .version import VERSION
def version_compare(v1: str, v2: str):
return json.loads($(nix-instantiate --eval --json --argstr v1 @(v1) --argstr v2 @(v2) --expr '{v1, v2}: builtins.compareVersions v1 v2'))