Do not pollute stdout with warning and trace.

This commit is contained in:
Matthieu Gautier 2024-04-03 11:02:14 +02:00
parent afda1f6673
commit 6fbe60386e
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,8 @@ class NeutralEnv:
if _platform == "Windows":
print(
"ERROR: kiwix-build is not intented to run on Windows platform.\n"
"It should probably not work, but well, you still can have a try."
"It should probably not work, but well, you still can have a try.",
file=sys.stderr,
)
cont = input("Do you want to continue ? [y/N]")
if cont.lower() != "y":
@ -70,7 +71,7 @@ class NeutralEnv:
if required:
sys.exit("ERROR: {} command not found".format(name))
else:
print("WARNING: {} command not found".format(name))
print("WARNING: {} command not found".format(name), file=sys.stderr)
return ["{}_NOT_FOUND".format(name.upper())]

View File

@ -135,7 +135,6 @@ def MixedMixin(static_name):
static = False
def add_targets(self, targetName, targets):
print(targetName)
if option("target") == targetName:
return super().add_targets(targetName, targets)
else: