mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
scripts/kde/collect-metadata: option to use unstable version
This commit is contained in:
parent
2e1ed6a230
commit
818c7c2111
2 changed files with 28 additions and 20 deletions
|
@ -27,8 +27,13 @@ import utils
|
|||
),
|
||||
default=pathlib.Path(__file__).parent.parent.parent.parent
|
||||
)
|
||||
def main(repo_metadata: pathlib.Path, nixpkgs: pathlib.Path):
|
||||
metadata = utils.KDERepoMetadata.from_repo_metadata_checkout(repo_metadata)
|
||||
@click.option(
|
||||
"--unstable",
|
||||
default=False,
|
||||
is_flag=True
|
||||
)
|
||||
def main(repo_metadata: pathlib.Path, nixpkgs: pathlib.Path, unstable: bool):
|
||||
metadata = utils.KDERepoMetadata.from_repo_metadata_checkout(repo_metadata, unstable)
|
||||
out_dir = nixpkgs / "pkgs/kde/generated"
|
||||
metadata.write_json(out_dir)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue