summaryrefslogtreecommitdiffstats
path: root/mga-hdlists-backports
diff options
context:
space:
mode:
Diffstat (limited to 'mga-hdlists-backports')
-rwxr-xr-xmga-hdlists-backports23
1 files changed, 23 insertions, 0 deletions
diff --git a/mga-hdlists-backports b/mga-hdlists-backports
new file mode 100755
index 0000000..6a0c19b
--- /dev/null
+++ b/mga-hdlists-backports
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/mgatools/functions
+
+if [ "$1" = "--dry-run" ]; then
+ dryrun=echo
+ shift
+fi
+
+if [ $# != 2 ]; then
+ echo "Usage: $0 [--dry-run] <release> <section>" >&2
+ exit 1
+fi
+
+release="$1"
+section="$2"
+
+update_distro_hdlist "$release" "$section" "backports_testing"
+update_distro_hdlist "$release" "$section" "backports"
+update_common_MD5SUM "$release"
+mirror_repository "$release"