aboutsummaryrefslogtreecommitdiff
path: root/etc/schroot/setup.d/80append-apt-sources
blob: 953a5b1ca6065924f57793126e9ce0da8e257262 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# /etc/schroot/setup.d/80apt-get-update

EXTRA_APT_SOURCES="/etc/schroot/sources.list.d/${CHROOT_NAME}.sources.list"
APT_PREFS="/etc/schroot/sources.list.d/${CHROOT_NAME}.preferences"

if [ -f "EXTRA_APT_SOURCES" -a $1 = "setup-start" ]; then
    if : || [ "$AUTH_VERBOSITY" = "verbose" ]; then
	chroot "${CHROOT_PATH}" apt-get update >&2 || true
    else
	chroot "${CHROOT_PATH}" apt-get update >/dev/null || true
    fi
fi