summaryrefslogtreecommitdiffstats
path: root/update_hdlists_any
diff options
context:
space:
mode:
Diffstat (limited to 'update_hdlists_any')
-rwxr-xr-xupdate_hdlists_any30
1 files changed, 30 insertions, 0 deletions
diff --git a/update_hdlists_any b/update_hdlists_any
new file mode 100755
index 0000000..4687c07
--- /dev/null
+++ b/update_hdlists_any
@@ -0,0 +1,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