taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 9c5c41220035420bacd1ed288f87d100bc7c84de
parent b0b5b52d8cdf8b282d24daa8e8bde20e0cdff946
Author: Florian Dold <florian@dold.me>
Date:   Sun, 25 May 2025 20:36:30 +0200

packaging: option to not build transitive dependencies

Diffstat:
Mpackaging/ng/taler-pkg | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/packaging/ng/taler-pkg b/packaging/ng/taler-pkg @@ -106,6 +106,9 @@ def find_outdated(pkgdir, roots): def build(cfg): + transitive = True + if cfg.no_transitive: + transitive = False distro = cfg.distro print("building", distro) dockerfile = f"distros/Dockerfile.{distro}" @@ -129,8 +132,12 @@ def build(cfg): print("outdated closure", closure) for component in buildorder: - if component not in closure: - continue + if transitive: + if component not in closure: + continue + else: + if component not in outdated: + continue print("building", component) pkgdir.mkdir(parents=True, exist_ok=True) cmd = [ @@ -195,6 +202,7 @@ def main(): parser_build = subparsers.add_parser("build", help="Build packages for distro.") parser_build.set_defaults(func=build) parser_build.add_argument("distro") + parser_build.add_argument("--no-transitive", help="Do not build transitive deps of changed components", action="store_true", default=False) parser_build.add_argument("--dry", help="Dry run", action="store_true", default=False) # subcommand show-latest