|
|
95774b8 |
From 00414eb67ab0591911167155963b5524fbf2b0c0 Mon Sep 17 00:00:00 2001
|
|
|
95774b8 |
From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
|
|
|
95774b8 |
Date: Mon, 9 Aug 2021 14:38:58 +0200
|
|
|
95774b8 |
Subject: [PATCH] Don't throw InvalidOptionError on invalid options
|
|
|
95774b8 |
|
|
|
95774b8 |
---
|
|
|
95774b8 |
python/mozbuild/mozbuild/configure/__init__.py | 5 +----
|
|
|
95774b8 |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
95774b8 |
|
|
|
95774b8 |
diff --git a/python/mozbuild/mozbuild/configure/__init__.py b/python/mozbuild/mozbuild/configure/__init__.py
|
|
|
95774b8 |
index f3167f6..c9e1132 100644
|
|
|
95774b8 |
--- a/python/mozbuild/mozbuild/configure/__init__.py
|
|
|
95774b8 |
+++ b/python/mozbuild/mozbuild/configure/__init__.py
|
|
|
95774b8 |
@@ -553,10 +553,7 @@ class ConfigureSandbox(dict):
|
|
|
95774b8 |
for arg in self._helper:
|
|
|
95774b8 |
without_value = arg.split("=", 1)[0]
|
|
|
95774b8 |
msg = "Unknown option: %s" % without_value
|
|
|
95774b8 |
- if self._help:
|
|
|
95774b8 |
- self._logger.warning(msg)
|
|
|
95774b8 |
- else:
|
|
|
95774b8 |
- raise InvalidOptionError(msg)
|
|
|
95774b8 |
+ self._logger.warning(msg)
|
|
|
95774b8 |
|
|
|
95774b8 |
# Run the execution queue
|
|
|
95774b8 |
for func, args in self._execution_queue:
|
|
|
95774b8 |
--
|
|
|
95774b8 |
2.31.1
|
|
|
95774b8 |
|