#!/bin/sh . /usr/share/mgatools/functions if [ $# != 3 ] then echo 'Usage: update_hdlists_any distro media section' >&2 exit 1 fi distro="$1" media="$2" section="$3" if ! inlist "$media" "$distrosections" then echo "Incorrect section $media" >&2 exit 1 fi for arch in $arches do update_hdlist "$distribdir/$distro/$arch/media/$media/$section" update_hdlist "$distribdir/$distro/$arch/media/debug/$media/$section" done update_hdlist "$distribdir/$distro/SRPMS/$media/$section" update_common_MD5SUM $distro mirror_repository $distro