Dont show the useless --system-version option for hyphenation

This commit is contained in:
Kovid Goyal 2019-12-03 08:59:02 +05:30
parent 49dd0a2d03
commit 9b777491ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 2 deletions

View File

@ -87,6 +87,7 @@ class Hyphenation(ReVendor):
TAR_NAME = 'hyphenation dictionaries'
VERSION = 'master'
DOWNLOAD_URL = 'https://github.com/LibreOffice/dictionaries/archive/%s.tar.gz' % VERSION
CAN_USE_SYSTEM_VERSION = False
def run(self, opts):
self.clean()

View File

@ -13,11 +13,13 @@ from setup import Command, download_securely
class ReVendor(Command):
# NAME = TAR_NAME = VERSION = DOWNLOAD_URL = ''
CAN_USE_SYSTEM_VERSION = True
def add_options(self, parser):
parser.add_option('--path-to-%s' % self.NAME, help='Path to the extracted %s source' % self.TAR_NAME)
parser.add_option('--%s-url' % self.NAME, default=self.DOWNLOAD_URL,
help='URL to %s source archive in tar.gz format' % self.TAR_NAME)
if self.CAN_USE_SYSTEM_VERSION:
parser.add_option('--system-%s' % self.NAME, default=False, action='store_true',
help='Treat %s as system copy and symlink instead of copy' % self.TAR_NAME)