From 05329f7f5689dcdb40385b202b866499b434121f Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 1 Mar 2018 08:54:58 +0000 Subject: [PATCH] Add messy fix for local repo source list not appearing early enough at package build time. FIXME. --- 020_pbuilder.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/020_pbuilder.sh b/020_pbuilder.sh index 6550699..39354b6 100644 --- a/020_pbuilder.sh +++ b/020_pbuilder.sh @@ -155,12 +155,19 @@ HOOKDIR=/srv/pbuilder/hook.d EXTRAPACKAGES="apt-utils" EOF +# Update local dep sources +# FIXME We add a sources list for the local dep files here because sometimes the one +# specified in $OTHERMIRROR above does not appear soon enough to allow a successful +# package build. This leads to a "source listed twice"" warning. cat > ${HOOK_DIR}/D05deps << 'EOF' #!/bin/bash +echo "deb [trusted=yes] file:///srv/pbuilder/deps ./" > /etc/apt/sources.list.d/local.list (cd /srv/pbuilder/deps; apt-ftparchive packages . > Packages) apt-get update EOF +chmod +x ${HOOK_DIR}/D05deps + #Update cow image on changes above #DIST=${DIST} ARCH=${ARCH} git-pbuilder create --override-config --mirror http://pkgmaster.devuan.org DIST=${DIST} ARCH=${ARCH} git-pbuilder create