enpass: fix updater script

This commit is contained in:
kirkwood
2026-05-11 13:04:04 +10:00
parent 89deb50e59
commit 8c81cf53d3
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ let
updater = {
update = stdenv.mkDerivation {
name = "enpass-update-script";
SCRIPT = ./update_script.py;
SCRIPT = toString ./update_script.py;
buildInputs = with python3Packages; [
python
+2 -1
View File
@@ -33,7 +33,8 @@ def find_latest_version(arch):
for package in packages.split("\n\n"):
matches = version_selector.search(package)
matched_version = matches.group('version') if matches and matches.group('version') else "0"
parsed_version = version.parse(matched_version)
try: parsed_version = version.parse(matched_version)
except version.InvalidVersion: continue
if parsed_version > last_version:
path = path_selector.search(package).group('path')
sha256 = hash_selector.search(package).group('sha256')