#!/usr/bin/sh

set -e

LOCALDIR="$(dirname $0)"
if [ -d "$LOCALDIR/.git" -a -f "$LOCALDIR/functions" ]; then
  . "$LOCALDIR/functions"
else
  . /usr/share/mgatools/functions
fi

if [ $# != 1 ]; then
    echo "Usage: $0 [--dry-run] <section>" >&2
    exit 1
fi

section="$1"

update_distro_hdlist "cauldron" "$section" "updates_testing"
update_distro_hdlist "cauldron" "$section" "release"
update_common_MD5SUM "cauldron"
mirror_repository "cauldron"
