#!/bin/sh

if [ $# -eq 0 ]; then
	echo "Usage:   $(basename $0) POOL"
	echo ""
	echo "Example: $(basename $0) sarge_with_hacks"
	exit 1
fi

for pool in $@; do
	sudo pbuilder update \
	--basetgz /var/cache/pbuilder/base-$pool.tgz \
	--buildplace /var/cache/pbuilder/build-$pool/ \
	--aptcache /var/cache/pbuilder/aptcache-$pool/
done