Fix argument order.
This commit is contained in:
parent
c20a26999a
commit
8310d973ad
1 changed files with 4 additions and 3 deletions
|
@ -177,6 +177,8 @@ def build(
|
||||||
source_date_epoch=None,
|
source_date_epoch=None,
|
||||||
extra_repositories=None,
|
extra_repositories=None,
|
||||||
):
|
):
|
||||||
|
for repo in extra_repositories or []:
|
||||||
|
build_command += " --extra-repository=" + shlex.quote(repo)
|
||||||
args = [
|
args = [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
"-m",
|
"-m",
|
||||||
|
@ -194,8 +196,6 @@ def build(
|
||||||
env["DISTRIBUTION"] = distribution
|
env["DISTRIBUTION"] = distribution
|
||||||
if source_date_epoch is not None:
|
if source_date_epoch is not None:
|
||||||
env["SOURCE_DATE_EPOCH"] = "%d" % source_date_epoch
|
env["SOURCE_DATE_EPOCH"] = "%d" % source_date_epoch
|
||||||
for repo in extra_repositories or []:
|
|
||||||
build_command += " --extra-repository=" + shlex.quote(repo)
|
|
||||||
logging.info("Building debian packages, running %r.", build_command)
|
logging.info("Building debian packages, running %r.", build_command)
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
|
@ -214,7 +214,8 @@ def build_once(
|
||||||
source_date_epoch=None,
|
source_date_epoch=None,
|
||||||
extra_repositories=None
|
extra_repositories=None
|
||||||
):
|
):
|
||||||
build_log_path = os.path.join(output_directory, "build.log")
|
pkg, version = get_latest_changelog_version(local_tree, subpath)
|
||||||
|
build_log_path = os.path.join(output_directory, pkg + ".build.log")
|
||||||
try:
|
try:
|
||||||
with open(build_log_path, "w") as f:
|
with open(build_log_path, "w") as f:
|
||||||
build(
|
build(
|
||||||
|
|
Loading…
Add table
Reference in a new issue