Skip to content

Commit c620f85

Browse files
committed
Do not build source package when building from onedir
1 parent 3ca60c4 commit c620f85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/pkg/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def debian(
6565
f"Building the package using the onedir artifact {str(onedir_artifact)}"
6666
)
6767
os.environ["SALT_ONEDIR_ARCHIVE"] = str(onedir_artifact)
68+
buildargs = ["-uc"]
6869
else:
6970
if arch is None:
7071
ctx.error(
@@ -89,14 +90,15 @@ def debian(
8990
for key, value in new_env.items():
9091
os.environ[key] = value
9192
env_args.extend(["-e", key])
93+
buildargs = ["-uc", "-us"]
9294

9395
env = os.environ.copy()
9496
env["PIP_CONSTRAINT"] = str(
9597
tools.utils.REPO_ROOT / "requirements" / "constraints.txt"
9698
)
9799

98100
ctx.run("ln", "-sf", "pkg/debian/", ".")
99-
ctx.run("debuild", *env_args, "-uc", "-us", env=env)
101+
ctx.run("debuild", *env_args, *buildargs, env=env)
100102

101103
ctx.info("Done")
102104

0 commit comments

Comments
 (0)