diff --git a/contrib/mkimage-debootstrap.sh b/contrib/mkimage-debootstrap.sh index 1c18c120ef..8ed4570289 100755 --- a/contrib/mkimage-debootstrap.sh +++ b/contrib/mkimage-debootstrap.sh @@ -44,6 +44,8 @@ debianStable=wheezy debianUnstable=sid # this should match the name found at http://releases.ubuntu.com/ ubuntuLatestLTS=precise +# this should match the name found at http://releases.tanglu.org/ +tangluLatest=aequorea while getopts v:i:a:p:dst name; do case "$name" in @@ -201,6 +203,13 @@ if [ -z "$strictDebootstrap" ]; then s/ $suite-updates main/ ${suite}-security main/ " etc/apt/sources.list ;; + Tanglu) + # add the updates repository + if [ "$suite" = "$tangluLatest" ]; then + # ${suite}-updates only applies to stable Tanglu versions + sudo sed -i "p; s/ $suite main$/ ${suite}-updates main/" etc/apt/sources.list + fi + ;; esac fi @@ -248,6 +257,19 @@ else fi fi ;; + Tanglu) + if [ "$suite" = "$tangluLatest" ]; then + # tag latest + $docker tag $repo:$suite $repo:latest + fi + if [ -r etc/lsb-release ]; then + lsbRelease="$(. etc/lsb-release && echo "$DISTRIB_RELEASE")" + if [ "$lsbRelease" ]; then + # tag specific Tanglu version number, if available (1.0, 2.0, etc.) + $docker tag $repo:$suite $repo:$lsbRelease + fi + fi + ;; esac fi fi