merge redundant cases for seed/mirror handling

ubuntu/mantic
Steve Langasek 1 year ago
parent caace43cb9
commit f44c2aac8c

1
debian/changelog vendored

@ -8,6 +8,7 @@ livecd-rootfs (23.10.33) UNRELEASED; urgency=medium
* Drop references to ubuntu-netbook, obsolete since Ubuntu 11.04. * Drop references to ubuntu-netbook, obsolete since Ubuntu 11.04.
* ubuntu-unity-live task exists, use it also instead of hard-coded list of * ubuntu-unity-live task exists, use it also instead of hard-coded list of
packages. packages.
* live-build/auto/config: various refactors to eliminate code duplication
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 06 Sep 2023 11:23:17 -0700 -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 06 Sep 2023 11:23:17 -0700

@ -15,16 +15,12 @@ echo "Building on $(hostname --fqdn)"
SEEDMIRROR=https://ubuntu-archive-team.ubuntu.com/seeds/ SEEDMIRROR=https://ubuntu-archive-team.ubuntu.com/seeds/
if [ -z "$MIRROR" ]; then if [ -z "$MIRROR" ]; then
case $(hostname --fqdn) in case $(hostname --fqdn) in
*.ubuntu.com) MIRROR=http://ftpmaster.internal/ubuntu/ *.ubuntu.com|*.buildd|*.ppa|*.scalingstack)
MIRROR=http://ftpmaster.internal/ubuntu/
SEEDMIRROR=http://archive-team.internal/seeds/ SEEDMIRROR=http://archive-team.internal/seeds/
;; ;;
*.buildd) MIRROR=http://ftpmaster.internal/ubuntu/ *)
SEEDMIRROR=http://archive-team.internal/seeds/ case $ARCH in
;;
*.ppa|*.scalingstack) MIRROR=http://ftpmaster.internal/ubuntu/
SEEDMIRROR=http://archive-team.internal/seeds/
;;
*) case $ARCH in
i386|amd64) MIRROR=http://archive.ubuntu.com/ubuntu/ ;; i386|amd64) MIRROR=http://archive.ubuntu.com/ubuntu/ ;;
*) MIRROR=http://ports.ubuntu.com/ubuntu-ports/ ;; *) MIRROR=http://ports.ubuntu.com/ubuntu-ports/ ;;
esac esac

Loading…
Cancel
Save