#!/bin/bash # # See https://wiki.debian.org/BuildingFormalBackports # https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build set -e # Generated local repository metadata if [ ! -z "$LOCALDEBS" ]; then echo "deb [trusted=yes] file://${LOCALDEBS} ./" >> /etc/apt/sources.list ( cd $LOCALDEBS; apt-ftparchive packages . > Packages ) fi # Update package list /usr/bin/apt-get update