Fix nanorc install on Xenial

This commit is contained in:
VirtuBox 2020-10-14 22:28:30 +02:00
parent 9b1bccb336
commit 8a5f6ca692
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 3 additions and 5 deletions

View File

@ -153,11 +153,9 @@ def pre_pref(self, apt_packages):
# nano
if 'nano' in apt_packages:
if WOVar.wo_distro == 'ubuntu':
if (WOVar.wo_platform_codename == 'bionic' or
WOVar.wo_platform_codename == 'xenial'):
Log.debug(self, 'Adding ppa for nano')
WORepo.add(self, ppa=WOVar.wo_ubuntu_backports)
if WOVar.wo_platform_codename == 'bionic':
Log.debug(self, 'Adding ppa for nano')
WORepo.add(self, ppa=WOVar.wo_ubuntu_backports)
else:
if not WOFileUtils.grepcheck(
self, '/etc/apt/sources.list/wo-repo.list',