Skip to content

Commit

Permalink
mwdeploy: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Jan 15, 2024
1 parent 0adce5c commit e3d3665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mediawiki/files/bin/mwdeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import sys
from langcodes import tag_is_valid

mw_versions = os.popen('getMWVersions').read().strip()
mw_versions = os.popen('/usr/local/bin/getMWVersions').read().strip()
versions = {'version': 'version'}
if mw_versions:
versions = json.loads(mw_versions)
Expand Down Expand Up @@ -724,7 +724,7 @@ def __call__(self, parser, namespace, values, option_string=None): # noqa: U100
parser.add_argument('--files', dest='files')
parser.add_argument('--folders', dest='folders')
parser.add_argument('--lang', dest='lang', action=LangAction, help='l10n language(s) to rebuild, defaults to all')
parser.add_argument('--versions', dest='versions', action=VersionsAction, default=[os.popen(f'getMWVersion {get_environment_info()["wikidbname"]}').read().strip()], help='version(s) to deploy')
parser.add_argument('--versions', dest='versions', action=VersionsAction, default=[os.popen(f'/usr/local/bin/getMWVersion {get_environment_info()["wikidbname"]}').read().strip()], help='version(s) to deploy')
parser.add_argument('--show-tags', dest='show_tags', action='store_true', help='Show change tags for extension/skin upgrades')
parser.add_argument('--skip-schema-confirm', dest='skip_schema_confirm', action='store_true', help='Skip confirm prompts for extensions with schema changes')
parser.add_argument('--upgrade-extensions', dest='upgrade_extensions', action=UpgradeExtensionsAction, help='extension(s) to upgrade')
Expand Down

0 comments on commit e3d3665

Please sign in to comment.