#!/bin/sh
#
#	apt-walkabout poll
#
#	Updates the package list and does a fetch for every target for
#	both an upgrade and dist-upgrade.
#
#	Run this on any system.
#	Run this after you have done an "apt-walkabout adopt".
#
set -e

if [ ! -f bin/adopt ]; then
    echo "aborted, we're not in an apt-walkabout instance"
    exit 1
fi

bin/update
bin/each bin/fetch "upgrade --force-yes"
bin/each bin/fetch "dist-upgrade --force-yes"
