Add Ubuntu 17.04

This commit is contained in:
Yorhel 2017-04-14 17:09:18 +02:00
parent 34e8ee8603
commit 72cb1ff184
4 changed files with 17 additions and 10 deletions

View file

@ -11,7 +11,6 @@ index() {
# Convenient wrapper around index() for debian repos
# TODO: Use x86_64 for new releases
# Usage: index_dev sys mirror distro list-of-components [contents]
# contents:
# empty for global Contents-i386.gz location
@ -22,11 +21,12 @@ index_deb() {
local MIRROR=$2
local DISTRO=$3
local COMPONENTS=$4
local CONTENTS=${5:-"dists/$DISTRO/Contents-i386.gz"}
local ARCH=${6:-"i386"}
local CONTENTS=${5:-"dists/$DISTRO/Contents-$ARCH.gz"}
for CMP in $COMPONENTS; do
local CONT=$CONTENTS
test $CONT = cmp && CONT="dists/$DISTRO/$CMP/Contents-i386.gz"
index deb --sys "$SYS" --mirror "$MIRROR" --contents "$MIRROR$CONT" --packages "${MIRROR}dists/$DISTRO/$CMP/binary-i386/Packages.gz"
test $CONT = cmp && CONT="dists/$DISTRO/$CMP/Contents-$ARCH.gz"
index deb --sys "$SYS" --mirror "$MIRROR" --contents "$MIRROR$CONT" --packages "${MIRROR}dists/$DISTRO/$CMP/binary-$ARCH/Packages.gz"
done
}

View file

@ -7,11 +7,12 @@ CMIRROR=http://nl.archive.ubuntu.com/ubuntu/
# Shortcut for a standard Ubuntu repo, usage:
# stdrepo name mirror
# stdrepo name mirror arch
stdrepo() {
index_deb ubuntu-$1 $2 $1 "main multiverse restricted universe"
index_deb ubuntu-$1 $2 $1-updates "main multiverse restricted universe"
index_deb ubuntu-$1 $2 $1-security "main multiverse restricted universe"
local ARCH=${3:-"i386"}
index_deb ubuntu-$1 $2 $1 "main multiverse restricted universe" "" $ARCH
index_deb ubuntu-$1 $2 $1-updates "main multiverse restricted universe" "" $ARCH
index_deb ubuntu-$1 $2 $1-security "main multiverse restricted universe" "" $ARCH
}
@ -100,6 +101,9 @@ case $1 in
yakkety)
stdrepo yakkety $CMIRROR
;;
zesty)
stdrepo zesty $CMIRROR amd64
;;
old)
$0 warty
$0 hoary
@ -128,6 +132,7 @@ case $1 in
$0 trusty # until 2019-04
$0 xenial # until 2021-04
$0 yakkety # until 2017-07
$0 zesty # until 2018-01
;;
all)
$0 old