From 9b777491ce1a30e2992c943b591138ef36495d23 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Dec 2019 08:59:02 +0530 Subject: [PATCH] Dont show the useless --system-version option for hyphenation --- setup/hyphenation.py | 1 + setup/revendor.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/setup/hyphenation.py b/setup/hyphenation.py index 86b5ebd83d..1d622bf5b7 100644 --- a/setup/hyphenation.py +++ b/setup/hyphenation.py @@ -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() diff --git a/setup/revendor.py b/setup/revendor.py index 4475439061..3060c91f8f 100755 --- a/setup/revendor.py +++ b/setup/revendor.py @@ -13,13 +13,15 @@ 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) - 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) + 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) def download_vendor_release(self, tdir, url): self.info('Downloading %s:' % self.TAR_NAME, url)