#!/bin/sh

echo -e "\n# Uncomment the next line if you want to use your remote repository" >> /etc/apt/sources.list
echo "#deb http://$SUDO_USER:$SUDO_USER@intranet.logilab.fr/~$SUDO_USER/dists $DIST/" >> /etc/apt/sources.list
if [ -f "$BUILDRESULT/Packages.gz" ]; then
	echo "Adding a new sources.list entry for '$BUILDRESULT'..."
	echo -e "\ndeb file://$(dirname $BUILDRESULT) $(basename $BUILDRESULT)/" >> /etc/apt/sources.list
fi
