Merge pull request #4487 from ThomasWaldmann/nofollow-check

do not check python/libc for borg serve, fixes #4483
This commit is contained in:
TW 2019-05-12 19:08:39 +02:00 committed by GitHub
commit 3e90eb1d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -4346,8 +4346,10 @@ class Archiver:
parser.error('Need at least one PATH argument.')
return args
def prerun_checks(self, logger):
check_python()
def prerun_checks(self, logger, is_serve):
if not is_serve:
# this is the borg *client*, we need to check the python:
check_python()
check_extension_modules()
selftest(logger)
@ -4389,7 +4391,7 @@ class Archiver:
return self.exit_code
if args.show_version:
logging.getLogger('borg.output.show-version').info('borgbackup version %s' % __version__)
self.prerun_checks(logger)
self.prerun_checks(logger, is_serve)
if not is_supported_msgpack():
logger.error("You do not have a supported msgpack[-python] version installed. Terminating.")
logger.error("This should never happen as specific, supported versions are required by our setup.py.")