3
# Copyright 2009 Canonical Ltd. This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
6
# Buildd Slave tool to override sources.list in the chroot with a list of
9
# Expects build id as arg 1
10
# Expects sources.list lines as subsequent args
12
# Needs SUDO to be set to a sudo instance for passwordless access
23
cd "build-$BUILDID/chroot-autobuild/etc/apt"
25
echo "Overriding sources.list in build-$BUILDID"
27
$SUDO rm -f sources.list.new
30
done) | $SUDO tee sources.list.new >/dev/null
31
$SUDO mv sources.list.new sources.list