Do not pollute stdout with warning and trace.
This commit is contained in:
parent
afda1f6673
commit
6fbe60386e
|
@ -36,7 +36,8 @@ class NeutralEnv:
|
||||||
if _platform == "Windows":
|
if _platform == "Windows":
|
||||||
print(
|
print(
|
||||||
"ERROR: kiwix-build is not intented to run on Windows platform.\n"
|
"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]")
|
cont = input("Do you want to continue ? [y/N]")
|
||||||
if cont.lower() != "y":
|
if cont.lower() != "y":
|
||||||
|
@ -70,7 +71,7 @@ class NeutralEnv:
|
||||||
if required:
|
if required:
|
||||||
sys.exit("ERROR: {} command not found".format(name))
|
sys.exit("ERROR: {} command not found".format(name))
|
||||||
else:
|
else:
|
||||||
print("WARNING: {} command not found".format(name))
|
print("WARNING: {} command not found".format(name), file=sys.stderr)
|
||||||
return ["{}_NOT_FOUND".format(name.upper())]
|
return ["{}_NOT_FOUND".format(name.upper())]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,6 @@ def MixedMixin(static_name):
|
||||||
static = False
|
static = False
|
||||||
|
|
||||||
def add_targets(self, targetName, targets):
|
def add_targets(self, targetName, targets):
|
||||||
print(targetName)
|
|
||||||
if option("target") == targetName:
|
if option("target") == targetName:
|
||||||
return super().add_targets(targetName, targets)
|
return super().add_targets(targetName, targets)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue