summaryrefslogtreecommitdiff
path: root/get_repos
blob: 824ab150a3a59ad079101347b0bcab77764d3201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# TODO needs refactoring

PDIR="/srv/http/web"
DIR="/srv/http/web/repos"

for arch in i686 x86_64 mips64el; do
    for repo in community extra core testing libre libre-testing social; do
        [[ ! -d $DIR/$arch ]] && mkdir -p $DIR/$arch

        cd $DIR/$arch

        rm -f *.db.tar.gz

        wget http://repo.parabolagnulinux.org/$repo/os/$arch/$repo.db.tar.gz && \
        $PDIR/manage.py reporead $arch $DIR/$arch/$repo.db.tar.gz
    done
done

for repo in connos connos-extra; do
    arch=i586
    [[ ! -d $DIR/$arch ]] && mkdir -p $DIR/$arch

    cd $DIR/$arch

    rm -f *.db.tar.gz

    wget http://www.connochaetos.org/os/$arch/$repo/$repo.db.tar.gz && \
    $PDIR/manage.py reporead $arch $DIR/$arch/$repo.db.tar.gz
done


exit 0