forked from lix-project/lix
releng: fix git checking
Change-Id: I82ddd918311b48e596adb807b81221973113fe7a
This commit is contained in:
parent
e715e5fd31
commit
7be0d237e0
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue