]> piware.de Git - bin.git/blobdiff - build-debian-toolbox
build-debian-toolbox: Add deb-src
[bin.git] / build-debian-toolbox
index ce0318324809fe4cd3fc4e6a1dbb62d3b8490403..f978ee15d039244977337ede51e6bc00a217db75 100755 (executable)
@@ -18,8 +18,8 @@ fi
 # go-faster apt/dpkg
 echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io
 
-# location based redirector gets it wrong with company VPN
-sed -i "s/deb.debian.org/ftp.de.debian.org/" /etc/apt/sources.list
+# location based redirector gets it wrong with company VPN; also add deb-src
+sed -i "s/deb.debian.org/ftp.de.debian.org/; /^deb\b/ { p; s/^deb/deb-src/ }" /etc/apt/sources.list
 
 apt-get update
 apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin