mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
update_version: fix linter
This commit is contained in:
parent
d91a613061
commit
0a9e5de809
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from typing import Any
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import tomlkit
|
import tomlkit
|
||||||
import requests
|
import requests
|
||||||
|
@ -51,7 +52,7 @@ def sha256sum_of(url: str) -> str:
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
manifest_file = REPO_ROOT/"manifest.toml"
|
manifest_file = REPO_ROOT/"manifest.toml"
|
||||||
manifest = tomlkit.parse(manifest_file.open(encoding="utf-8").read())
|
manifest: dict[str, Any] = tomlkit.parse(manifest_file.open(encoding="utf-8").read())
|
||||||
|
|
||||||
jellyfin_version = version_from__common_sh("pkg_version")
|
jellyfin_version = version_from__common_sh("pkg_version")
|
||||||
ffmpeg_version = version_from__common_sh("ffmpeg_pkg_version")
|
ffmpeg_version = version_from__common_sh("ffmpeg_pkg_version")
|
||||||
|
@ -75,6 +76,5 @@ def main() -> None:
|
||||||
manifest_file.open("w", encoding="utf-8").write(tomlkit.dumps(manifest))
|
manifest_file.open("w", encoding="utf-8").write(tomlkit.dumps(manifest))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue