mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-07 01:46:16 +01:00
25f662bdc3
Using the git history. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
38 lines
917 B
Python
Executable File
38 lines
917 B
Python
Executable File
#!/usr/bin/env python3
|
|
#
|
|
# Copyright © 2022 Collabora, Ltd.
|
|
#
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# Original author: Xavier Claessens
|
|
|
|
"""
|
|
This script checks Meson configuration logs to verify no installed file is
|
|
missing installation tag.
|
|
"""
|
|
|
|
import argparse
|
|
import json
|
|
from pathlib import Path
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("builddir", type=Path)
|
|
args = parser.parse_args()
|
|
|
|
success = True
|
|
path = args.builddir / "meson-info" / "intro-install_plan.json"
|
|
with path.open(encoding="utf-8") as f:
|
|
install_plan = json.load(f)
|
|
for target in install_plan.values():
|
|
for info in target.values():
|
|
if not info["tag"]:
|
|
print("Missing install_tag for", info["destination"])
|
|
success = False
|
|
return 0 if success else 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
exit(main())
|