]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
apt: Allow release info change
authorRenjaya Raga Zenta <ragazenta@gmail.com>
Wed, 8 May 2024 02:45:04 +0000 (09:45 +0700)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 8 May 2024 07:27:43 +0000 (09:27 +0200)
Allow the update command to continue downloading data from a repository which changed its information of the release contained in the repository indicating e.g a new major release. APT will fail at the update command for such repositories until the change is confirmed to ensure the user is prepared for the change.

mkosi/installer/apt.py

index 3eb3426a3180818b909b457d2b83e5754feed2f5..f782fa76dbad0123ef20c96716f7d8b6121006f8 100644 (file)
@@ -140,6 +140,7 @@ class Apt(PackageManager):
             "-o", "APT::Get::Allow-Change-Held-Packages=true",
             "-o", "APT::Get::Allow-Remove-Essential=true",
             "-o", "APT::Sandbox::User=root",
+            "-o", "Acquire::AllowReleaseInfoChange=true",
             "-o", "Dir::Cache=/var/cache/apt",
             "-o", "Dir::State=/var/lib/apt",
             "-o", "Dir::Log=/var/log/apt",