mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont show the useless --system-version option for hyphenation
This commit is contained in:
parent
49dd0a2d03
commit
9b777491ce
@ -87,6 +87,7 @@ class Hyphenation(ReVendor):
|
|||||||
TAR_NAME = 'hyphenation dictionaries'
|
TAR_NAME = 'hyphenation dictionaries'
|
||||||
VERSION = 'master'
|
VERSION = 'master'
|
||||||
DOWNLOAD_URL = 'https://github.com/LibreOffice/dictionaries/archive/%s.tar.gz' % VERSION
|
DOWNLOAD_URL = 'https://github.com/LibreOffice/dictionaries/archive/%s.tar.gz' % VERSION
|
||||||
|
CAN_USE_SYSTEM_VERSION = False
|
||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
self.clean()
|
self.clean()
|
||||||
|
@ -13,11 +13,13 @@ from setup import Command, download_securely
|
|||||||
class ReVendor(Command):
|
class ReVendor(Command):
|
||||||
|
|
||||||
# NAME = TAR_NAME = VERSION = DOWNLOAD_URL = ''
|
# NAME = TAR_NAME = VERSION = DOWNLOAD_URL = ''
|
||||||
|
CAN_USE_SYSTEM_VERSION = True
|
||||||
|
|
||||||
def add_options(self, parser):
|
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('--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,
|
parser.add_option('--%s-url' % self.NAME, default=self.DOWNLOAD_URL,
|
||||||
help='URL to %s source archive in tar.gz format' % self.TAR_NAME)
|
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',
|
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)
|
help='Treat %s as system copy and symlink instead of copy' % self.TAR_NAME)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user