X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/24c65908178e9fd4a7d7bf75b4c60db3b39c6cec..319f82896fb658d9bbaf8d01d6c2c7410eb967c7:/wizard/app/mediawiki.py diff --git a/wizard/app/mediawiki.py b/wizard/app/mediawiki.py index 1505fa1..2b6498b 100644 --- a/wizard/app/mediawiki.py +++ b/wizard/app/mediawiki.py @@ -6,9 +6,17 @@ import lxml.etree import StringIO import logging -from wizard import app, install, resolve, shell, util +from wizard import app, install, resolve, shell, sql, util from wizard.app import php +# Note: Maintenance script exit codes +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# MediaWiki has notoriously spotty support for exit codes. It has +# gotten better, but there are still always cases that slip through, +# such as . +# As a result, we check both for exit codes AND for the "success" +# message in stdout. + def make_filename_regex(var): """See :ref:`versioning config ` for more information.""" return 'LocalSettings.php', php.re_var(var) @@ -44,6 +52,32 @@ class Application(app.Application): def checkWeb(self, deployment): return self.checkWebPage(deployment, "/index.php?title=Main_Page", outputs=["