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:

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1312275?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I49ac58d5a49d2c30d2c389f892a6eceeb30decfb
Gerrit-Change-Number: 1312275
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to