mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Do not build source package when building from onedir
This commit is contained in:
parent
3ca60c4c37
commit
6a301e38eb
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue