jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1312275?usp=email )
Change subject: make_dist: do not check for build/twinw modules if -clear option is used ......................................................................
make_dist: do not check for build/twinw modules if -clear option is used
Change-Id: I49ac58d5a49d2c30d2c389f892a6eceeb30decfb --- M make_dist.py 1 file changed, 3 insertions(+), 5 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/make_dist.py b/make_dist.py index b7ab1f4..4a0fd4c 100755 --- a/make_dist.py +++ b/make_dist.py @@ -142,11 +142,9 @@
:return: True if no error occurs, else False """ - tools = ( - ('build', MODULE), - ('pyclean', COMMAND), - ('twine', MODULE), - ) + tools = (('pyclean', COMMAND), ) + if not self.clear: + tools += ('build', MODULE), ('twine', MODULE) for tool, tool_type in tools: if not self._check_module(tool, tool_type): if not self.upgrade:
pywikibot-commits@lists.wikimedia.org