[2/2] bootstrap: drop unused APTSRCS_INIT

Message ID 20260601141551.1997347-2-clara.kowalsky@siemens.com
State New
Headers show
Series [1/2] mmdebstrap: drop orphan upload of APTSRCS_INIT to /etc/apt/sources-list | expand

Commit Message

Clara Kowalsky June 1, 2026, 2:15 p.m. UTC
Its last consumer, the mmdebstrap setup hook uploading the file to
/etc/apt/sources-init, was removed in commit "mmdebstrap: drop
orphan upload of APTSRCS_INIT to /etc/apt/sources-list", leaving dead
code that wastes a do_apt_config_prepare write on every bootstrap.

Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
 meta/classes-recipe/bootstrap.bbclass | 3 ---
 1 file changed, 3 deletions(-)

Patch

diff --git a/meta/classes-recipe/bootstrap.bbclass b/meta/classes-recipe/bootstrap.bbclass
index 03014cb8..51cd2517 100644
--- a/meta/classes-recipe/bootstrap.bbclass
+++ b/meta/classes-recipe/bootstrap.bbclass
@@ -16,7 +16,6 @@  BOOTSTRAP_FOR_HOST ?= "0"
 
 APTPREFS = "${WORKDIR}/apt-preferences"
 APTSRCS = "${WORKDIR}/apt-sources"
-APTSRCS_INIT = "${WORKDIR}/apt-sources-init"
 DISTRO_BOOTSTRAP_KEYFILES = ""
 THIRD_PARTY_APT_KEYFILES = ""
 DISTRO_BOOTSTRAP_KEYS ?= ""
@@ -222,10 +221,8 @@  python do_apt_config_prepare() {
     aggregate_files(d, apt_preferences_list, apt_preferences_out)
 
     apt_sources_out = d.getVar("APTSRCS")
-    apt_sources_init_out = d.getVar("APTSRCS_INIT")
     apt_sources_list = get_aptsources_list(d)
 
-    aggregate_files(d, apt_sources_list, apt_sources_init_out)
     aggregate_aptsources_list(d, apt_sources_list, apt_sources_out)
 }
 addtask apt_config_prepare before do_bootstrap after do_unpack