summaryrefslogtreecommitdiffstats
path: root/update_hdlists_any
blob: 4687c07b33ca8bb15133c48e327d274527cd67e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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