mirror of
https://github.com/Mic92/nix-update.git
synced 2024-11-03 21:04:49 +03:00
print maintainers list
This commit is contained in:
parent
6e4ee6941a
commit
a566b9bdb1
@ -290,6 +290,14 @@ def main(args: list[str] = sys.argv[1:]) -> None:
|
|||||||
|
|
||||||
package = update(options)
|
package = update(options)
|
||||||
|
|
||||||
|
if package.maintainers:
|
||||||
|
print("Package maintainers:")
|
||||||
|
for maintainer in package.maintainers:
|
||||||
|
print(
|
||||||
|
f" - {maintainer['name']}"
|
||||||
|
+ (f" (@{maintainer['github']})" if "github" in maintainer else "")
|
||||||
|
)
|
||||||
|
|
||||||
if options.build:
|
if options.build:
|
||||||
nix_build(options)
|
nix_build(options)
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ class Package:
|
|||||||
url: str | None
|
url: str | None
|
||||||
src_homepage: str | None
|
src_homepage: str | None
|
||||||
changelog: str | None
|
changelog: str | None
|
||||||
|
maintainers: list[dict[str, str]] | None
|
||||||
rev: str
|
rev: str
|
||||||
hash: str | None
|
hash: str | None
|
||||||
go_modules: str | None
|
go_modules: str | None
|
||||||
@ -165,6 +166,7 @@ in {{
|
|||||||
has_update_script = {has_update_script};
|
has_update_script = {has_update_script};
|
||||||
src_homepage = pkg.src.meta.homepage or null;
|
src_homepage = pkg.src.meta.homepage or null;
|
||||||
changelog = pkg.meta.changelog or null;
|
changelog = pkg.meta.changelog or null;
|
||||||
|
maintainers = pkg.meta.maintainers or null;
|
||||||
}}"""
|
}}"""
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user