From: Yaroslav Halchenko Date: Thu, 27 Oct 2011 22:22:37 +0000 (-0400) Subject: Merge remote-tracking branch 'neurohydra/master' X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b7dcfd13a7855475d354f603f02422fe865feea5;hp=b0525e4f287b33214d31d3b4b5c47b3ca65ce1f7;p=neurodebian.git Merge remote-tracking branch 'neurohydra/master' * neurohydra/master: NH: little helper to initiate chroots for all supported distros BF: time into recommends since used in nd_ scripts BF: call apt-key add explicitly for older Ubuntus reordered dists by age to match Debian ones order RF: only suggest virtualbox-ose while installing neurodebian-dev --- diff --git a/cmdsettings.sh b/cmdsettings.sh index 037d3e1..3c10414 100644 --- a/cmdsettings.sh +++ b/cmdsettings.sh @@ -7,7 +7,7 @@ buildplace="${cowbuilderroot}/build" # all cuurently supported dists allnddists="nd+debian-lenny nd+debian-squeeze nd+debian-wheezy nd+debian-sid \ - nd+ubuntu-oneiric nd+ubuntu-natty nd+ubuntu-maverick nd+ubuntu-lucid nd+ubuntu-karmic nd+ubuntu-hardy" + nd+ubuntu-hardy nd+ubuntu-karmic nd+ubuntu-lucid nd+ubuntu-maverick nd+ubuntu-natty nd+ubuntu-oneiric" alldists="$allnddists debian-lenny debian-squeeze debian-wheezy debian-sid" # default is debian diff --git a/debian/control b/debian/control index 746ea0d..4456894 100644 --- a/debian/control +++ b/debian/control @@ -14,7 +14,8 @@ XS-DM-Upload-Allowed: yes Package: neurodebian-dev Architecture: all Depends: ${misc:Depends}, devscripts, cowbuilder, python, neurodebian-keyring -Recommends: virtualbox-ose, virtualbox-ose-fuse, zerofree, moreutils +Recommends: zerofree, moreutils, time +Suggests: virtualbox-ose, virtualbox-ose-fuse Suggests: Description: NeuroDebian development tools neuro.debian.net sphinx website sources and development tools used by diff --git a/tools/nd_adddist b/tools/nd_adddist index f5aa64d..04f2812 100755 --- a/tools/nd_adddist +++ b/tools/nd_adddist @@ -42,9 +42,17 @@ for a in i386 amd64; do --mirror "$mirror" \ --debootstrapopts --arch=$a \ --othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free" - # deploy our key manually since archive with package is not yet - # available at this point - cp --preserve=mode {,${cow}}/etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg + # deploy our key manually since archive with package is not yet + # available at this point + mkdir -p ${cow}/etc/apt/trusted.gpg.d + cp --preserve=mode {,${cow}}/etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg + # Old ubuntus might not have capability to ready from that key yet, + # so we would need to manually add it + if [ $dist = 'karmic' ] || [ $dist = 'hardy' ]; then + chroot ${cow} bash -c "apt-get install -y --force-yes gnupg \ + && /usr/bin/apt-key add /etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg \ + && /usr/bin/apt-get update" + fi else cowbuilder --create --basepath ${cow} $opts \ --components "$components" \ diff --git a/tools/nd_adddistall b/tools/nd_adddistall new file mode 100755 index 0000000..f01fa88 --- /dev/null +++ b/tools/nd_adddistall @@ -0,0 +1,24 @@ +#!/bin/bash +# Little helper to bootstrap all ND chroots as specified in +# /etc/neurodebian/cmdsettings.sh unless a list provided in command line + +. /etc/neurodebian/cmdsettings.sh + +[ -z "$@" ] && dists="$allnddists" || dists="$@" + +echo "Initiating creation of chroots for $dists" + +set -eu + +CMD= +MSGS="SUMMARY:\n" +for dist in $dists; do + if [ -e "$cowbuilderroot/cow/$dist-amd64.cow" ]; then + status=exists + else + $CMD sudo $PWD/nd_adddist ${dist%%-*} ${dist#*-} && status=ok || status=failed + fi + MSGS+=" $(printf '%-30s\\t%s' $dist $status)\n" +done +echo -en $MSGS +