summaryrefslogtreecommitdiffstats
path: root/update_hdlists_any
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-07-28 14:50:01 +0100
committerColin Guthrie <colin@mageia.org>2014-07-28 14:50:01 +0100
commitb20033f3f63706b6fd6cc92168eb58ff1e97d58d (patch)
treedf7724e6e454038ee40193d665bc93fe583e38e9 /update_hdlists_any
parentf532a717bedc0282204b3dd48871e810bb0cb79f (diff)
downloadmgatools-topic/valstar.tar
mgatools-topic/valstar.tar.gz
mgatools-topic/valstar.tar.bz2
mgatools-topic/valstar.tar.xz
mgatools-topic/valstar.zip
Changes made on live clone on valstar as at 28th July 2014topic/valstar
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