jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/807611 )

Change subject: [bugfix] Fix -createonly option
......................................................................

[bugfix] Fix -createonly option

Changes proposed by Shalomori123

Bug: T311173
Change-Id: I94ef9179957bd280808489c176a26025f603fba7
---
M scripts/add_text.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/add_text.py b/scripts/add_text.py
index f221e39..c1251be 100755
--- a/scripts/add_text.py
+++ b/scripts/add_text.py
@@ -149,7 +149,7 @@
             pywikibot.output("{} doesn't exist, creating it!".format(page))
             return False

-        elif self.opt.create:
+        elif self.opt.create or self.opt.createonly:
             return False

         return super().skip_page(page)
@@ -217,7 +217,7 @@

         if option in ('-text', '-textfile', '-summary'):
             args[option[1:]] = value
-        elif option in ('-up', '-always', '-create', 'createonly'):
+        elif option in ('-up', '-always', '-create', '-createonly'):
             args[option[1:]] = True
         elif option in ('-talk', '-talkpage'):
             args['talk_page'] = True

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

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

Reply via email to