From b349051e77d621a1268ad5764cba63c4b8f2c2ef Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Tue, 21 Feb 2023 12:47:44 +0800 Subject: [PATCH] [Build] Clean up the debian preference config file (#13885) Why I did it Support to upgrade packages, do better cleanup after the build. How I did it Remove the no use preference version control file after the build. How to verify it --- src/sonic-build-hooks/scripts/post_run_cleanup | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sonic-build-hooks/scripts/post_run_cleanup b/src/sonic-build-hooks/scripts/post_run_cleanup index 5e4ec23aec..8fcc43c57e 100755 --- a/src/sonic-build-hooks/scripts/post_run_cleanup +++ b/src/sonic-build-hooks/scripts/post_run_cleanup @@ -38,3 +38,4 @@ set_reproducible_mirrors -d # Remove the version deb preference rm -f $VERSION_DEB_PREFERENCE +rm -f /etc/apt/preferences.d/01-versions-deb