bzr_download() {
local OLD
OLD=$SOURCE_CACHE/$SOURCE
if [[ -e $OLD ]];then
 echo unpacking old tarball
 tar xjf $OLD
 cd $SPELL
 echo updating source tree
 bzr update
 cd -
else
  echo fetching source tree
  bzr checkout $SOURCE_URL $SPELL
fi
echo repacking tarball
tar cjf $SOURCE $SPELL
mv $SOURCE $OLD
}
if [[ $PART_VCS == y ]];then
  bzr_download
else
  default_download
fi
