Fix nano install on xenial

This commit is contained in:
VirtuBox 2020-10-15 12:43:05 +02:00
parent ba4b83a512
commit 78d8b98437
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 2 additions and 1 deletions

View File

@ -1260,7 +1260,8 @@ def post_pref(self, apt_packages, packages, upgrade=False):
'added by WordOps')
# nanorc
if 'nano' in apt_packages:
if (('nano' in apt_packages) and
(not WOVar.wo_platform_codename == 'xenial')):
Log.debug(self, 'Setting up nanorc')
WOGit.clone(self, 'https://github.com/scopatz/nanorc.git',
'/usr/share/nano-syntax-highlighting')