From c620f8506f364c771d9225fca685b2856322c6bd Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Wed, 18 Dec 2024 17:42:34 -0700 Subject: [PATCH] Do not build source package when building from onedir --- tools/pkg/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/pkg/build.py b/tools/pkg/build.py index 75173ac48982..8355a8dea987 100644 --- a/tools/pkg/build.py +++ b/tools/pkg/build.py @@ -65,6 +65,7 @@ def debian( f"Building the package using the onedir artifact {str(onedir_artifact)}" ) os.environ["SALT_ONEDIR_ARCHIVE"] = str(onedir_artifact) + buildargs = ["-uc"] else: if arch is None: ctx.error( @@ -89,6 +90,7 @@ def debian( for key, value in new_env.items(): os.environ[key] = value env_args.extend(["-e", key]) + buildargs = ["-uc", "-us"] env = os.environ.copy() env["PIP_CONSTRAINT"] = str( @@ -96,7 +98,7 @@ def debian( ) ctx.run("ln", "-sf", "pkg/debian/", ".") - ctx.run("debuild", *env_args, "-uc", "-us", env=env) + ctx.run("debuild", *env_args, *buildargs, env=env) ctx.info("Done")