blob: e046a22e903abe5505daf1db5e66278bebd1cb9f (
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
31
32
33
34
35
36
|
#!/bin/sh
. /usr/share/mgatools/functions
if [ $# != 2 ]
then
echo 'Usage: update_hdlists distrorelease section' >&2
exit 1
fi
distrorelease="$1"
section="$2"
#if ! inlist "$distrorelease" "$distroreleases"
#then
# echo "Incorrect distrorelease $distrorelease" >&2
# exit 1
#fi
if ! inlist "$section" "$distrosections"
then
echo "Incorrect section $section" >&2
exit 1
fi
for arch in $arches
do
update_hdlist "$distribdir/$distrorelease/$arch/media/$section/updates_testing"
update_hdlist "$distribdir/$distrorelease/$arch/media/$section/updates"
update_hdlist "$distribdir/$distrorelease/$arch/media/debug/$section/updates_testing"
update_hdlist "$distribdir/$distrorelease/$arch/media/debug/$section/updates"
done
update_hdlist "$distribdir/$distrorelease/SRPMS/$section/updates_testing"
update_hdlist "$distribdir/$distrorelease/SRPMS/$section/updates"
update_common_MD5SUM $distrorelease
mirror_repository $distrorelease
|