diff --git a/tools/pkg/build.py b/tools/pkg/build.py index 8355a8dea98..75173ac4898 100644 --- a/tools/pkg/build.py +++ b/tools/pkg/build.py @@ -65,7 +65,6 @@ 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( @@ -90,7 +89,6 @@ 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( @@ -98,7 +96,7 @@ def debian( ) ctx.run("ln", "-sf", "pkg/debian/", ".") - ctx.run("debuild", *env_args, *buildargs, env=env) + ctx.run("debuild", *env_args, "-uc", "-us", env=env) ctx.info("Done")