From 59675f8d8936ad8957381fb4ef17d2f69aa165e7 Mon Sep 17 00:00:00 2001 From: Daniel Braun Date: Sat, 22 Apr 2023 10:43:15 +0000 Subject: [PATCH] fix: apt-get lists restoration --- nanolayer/installers/apt_get/apt_get_installer.py | 2 +- tests/installers/gh_release/test_gh_release_installer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nanolayer/installers/apt_get/apt_get_installer.py b/nanolayer/installers/apt_get/apt_get_installer.py index 17cd0793..807baf83 100644 --- a/nanolayer/installers/apt_get/apt_get_installer.py +++ b/nanolayer/installers/apt_get/apt_get_installer.py @@ -122,5 +122,5 @@ def install( if preserve_apt_list: # Note: not using dir/* syntax as that doesnt work on 'sh' shell (alpine) Invoker.invoke( - command=f"rm -r /var/lib/apt/lists && mv {tempdir} /var/lib/apt/lists" + command=f"rm -r /var/lib/apt/lists && mv {tempdir}/lists /var/lib/apt/lists" ) diff --git a/tests/installers/gh_release/test_gh_release_installer.py b/tests/installers/gh_release/test_gh_release_installer.py index e5d99474..c1d3286d 100644 --- a/tests/installers/gh_release/test_gh_release_installer.py +++ b/tests/installers/gh_release/test_gh_release_installer.py @@ -168,5 +168,5 @@ def test_gh_release_install( test_command=full_test_command, image=image, docker_platform=docker_platform, - nanolayer_version="v0.4.0", + nanolayer_version="v0.4.25", )