]> piware.de Git - bin.git/commitdiff
build-debian-toolbox: Enable apt sources by default
authorMartin Pitt <martin@piware.de>
Tue, 18 Oct 2022 07:41:35 +0000 (09:41 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 18 Oct 2022 07:41:35 +0000 (09:41 +0200)
The format changed in sid, so only apply this to the RFC822-style source
files.

build-debian-toolbox

index 13ee84dba55fd4fd8442a29aeff5bab68937259c..f1e7f8eab90f07c5c31f3ad3307d54c9b6873442 100755 (executable)
@@ -17,6 +17,11 @@ echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io
 # otherwise installing systemd fails
 umount /var/log/journal
 
+# enable sources
+if [ -e /etc/apt/sources.list.d/debian.sources ]; then
+    sed -i "/^Types:/ s/deb$/deb deb-src/" /etc/apt/sources.list.d/debian.sources
+fi
+
 apt-get update
 apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin