Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
fix: apt sources didnt get restored
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Apr 1, 2023
1 parent 481b54a commit a1c40ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
npm install -g @devcontainers/cli


pip install -e .[dev,generate]
pip install -e .[dev]

apt-get -y install qemu binfmt-support qemu-user-static

Expand Down
3 changes: 2 additions & 1 deletion nanolayer/installers/apt_get/apt_get_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def install(
)

if preserve_apt_list:
# Note: not using dir/* syntax as that doesnt work on 'sh' shell (alpine)
Invoker.invoke(
command=f"mv {tempdir} /var/lib/apt/lists",
command=f"rm -r /var/lib/apt/lists && mv {tempdir} /var/lib/apt/lists",
raise_on_failure=True,
exception_class=cls.CleanUpFailed,
)

0 comments on commit a1c40ef

Please sign in to comment.