X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd_adddist;h=bf079b71376def4266166ac3e1597c9a750edd4c;hb=6c6fa9cd3bd627a60f165682f96af3cc06d9ccc9;hp=b4a3f21e85d507dd72d5a1fe4352c8377cd4fd74;hpb=667ad51132f0d3a8b3c72b2c4b2540a5d48010ae;p=neurodebian.git diff --git a/tools/nd_adddist b/tools/nd_adddist index b4a3f21..bf079b7 100755 --- a/tools/nd_adddist +++ b/tools/nd_adddist @@ -22,8 +22,13 @@ fi opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache" if echo $family | grep -q ubuntu; then - # Use ubuntu's keyring since otherwise debootstrap would fail - opts+=" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg" + # Use ubuntu's keyring since otherwise debootstrap would fail + opts+=" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg" +fi + +if echo $family | grep -q debian; then + # Use debian keyring since otherwise debootstrap would fail (on Ubuntu) + opts+=" --debootstrapopts --keyring=/usr/share/keyrings/debian-archive-keyring.gpg" fi mkdir -p ${cowbuilderroot}/cow @@ -48,7 +53,7 @@ for a in i386 amd64; do --components "$components" \ --mirror "$mirror" \ --debootstrapopts --arch=$a \ - --othermirror "${updates_apt}deb http://neuro.debian.net/debian $dist main contrib non-free" + --othermirror "${updates_apt}deb http://neuro.debian.net/debian $dist main contrib non-free | deb http://neuro.debian.net/debian data main contrib non-free" # deploy our key manually since archive with package is not yet # available at this point mkdir -p ${cow}/etc/apt/trusted.gpg.d