summaryrefslogtreecommitdiffstats
path: root/mga-hdlists-backports
blob: 6a0c19be363c3bb35af3206825bec28dca0e6ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"