summaryrefslogtreecommitdiffstats
path: root/update_hdlists
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
parentf532a717bedc0282204b3dd48871e810bb0cb79f (diff)
downloadmgatools-b20033f3f63706b6fd6cc92168eb58ff1e97d58d.tar
mgatools-b20033f3f63706b6fd6cc92168eb58ff1e97d58d.tar.gz
mgatools-b20033f3f63706b6fd6cc92168eb58ff1e97d58d.tar.bz2
mgatools-b20033f3f63706b6fd6cc92168eb58ff1e97d58d.tar.xz
mgatools-b20033f3f63706b6fd6cc92168eb58ff1e97d58d.zip
Changes made on live clone on valstar as at 28th July 2014topic/valstar
Diffstat (limited to 'update_hdlists')
-rwxr-xr-xupdate_hdlists36
1 files changed, 36 insertions, 0 deletions
diff --git a/update_hdlists b/update_hdlists
new file mode 100755
index 0000000..e046a22
--- /dev/null
+++ b/update_hdlists
@@ -0,0 +1,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