summaryrefslogtreecommitdiffstats
path: root/update_hdlists_backports
diff options
context:
space:
mode:
Diffstat (limited to 'update_hdlists_backports')
-rwxr-xr-xupdate_hdlists_backports37
1 files changed, 37 insertions, 0 deletions
diff --git a/update_hdlists_backports b/update_hdlists_backports
new file mode 100755
index 0000000..c9a17cb
--- /dev/null
+++ b/update_hdlists_backports
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+. /usr/share/mgatools/functions
+
+if [ $# != 2 ]
+then
+ echo 'Usage: update_hdlists_backports 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/backports_testing"
+ update_hdlist "$distribdir/$distrorelease/$arch/media/$section/backports"
+ update_hdlist "$distribdir/$distrorelease/$arch/media/debug/$section/backports_testing"
+ update_hdlist "$distribdir/$distrorelease/$arch/media/debug/$section/backports"
+ done
+
+ update_hdlist "$distribdir/$distrorelease/SRPMS/$section/backports_testing"
+ update_hdlist "$distribdir/$distrorelease/SRPMS/$section/backports"
+ update_common_MD5SUM $distrorelease
+ mirror_repository $distrorelease