From df137f73a6e7945cc30d6ee7e581647db54bd679 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 25 Jul 2021 13:32:59 +0200 Subject: [PATCH] bundles/apt: symlink /usr/bin/python to python3 --- bundles/apt/items.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bundles/apt/items.py b/bundles/apt/items.py index e756a67..8655d50 100644 --- a/bundles/apt/items.py +++ b/bundles/apt/items.py @@ -152,6 +152,15 @@ pkg_apt = { }, } +if node.os_version[0] >= 11: + symlinks = { + '/usr/bin/python': { + 'target': '/usr/bin/python3', + 'needs': { + 'pkg_apt:python3', + }, + }, + } for name, data in node.metadata.get('apt/repos', {}).items(): files['/etc/apt/sources.list.d/{}.list'.format(name)] = {