Add messy fix for local repo source list not appearing early enough at package build time. FIXME.

This commit is contained in:
Cyteen 2018-03-01 08:54:58 +00:00
parent 1d9240c840
commit 05329f7f56
1 changed files with 7 additions and 0 deletions

View File

@ -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