]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_repos2db.sh: Update list of repos from alexandria to repo.pb.local
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 8 Oct 2014 09:45:53 +0000 (11:45 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 8 Oct 2014 09:45:53 +0000 (11:45 +0200)
debian_repos2db.sh

index ce40529e065916039c13f49075e056f479fbcb09..6a8c8d83ff862c081d89d15c257f1cd02817e60e 100755 (executable)
@@ -1,32 +1,35 @@
 #!/bin/bash
 
 
-REPO_SUITES[0]="squeeze profitbricks-backports profitbricks-backports-proposed-updates profitbricks-backports-pre-staging"
+REPO_SUITES[0]="squeeze squeeze-updates"
 REPO_SECTIONS[0]="main contrib non-free"
-REPO_BASE_URL[0]="http://alexandria/debian-mirror/dists/SUITE/SECTION/binary-amd64/"
+REPO_BASE_URL[0]="http://repo.pb.local/debian/dists/SUITE/SECTION/binary-amd64"
+REPO_ORIGIN[0]="debian"
 
-REPO_SUITES[1]="production-approved-updates production-proposed-updates production pre-staging"
+REPO_SUITES[1]="squeeze/updates"
 REPO_SECTIONS[1]="main contrib non-free"
-REPO_BASE_URL[1]="http://alexandria/profitbricks-repository/dists/SUITE/SECTION/binary-amd64/"
+REPO_BASE_URL[1]="http://repo.pb.local/debian-security/dists/SUITE/SECTION/binary-amd64"
+REPO_ORIGIN[1]="debian"
 
-REPO_SUITES[2]="pool"
-REPO_SECTIONS[2]="main non-free"
-REPO_BASE_URL[2]="http://alexandria/profitbricks-repository/SUITE/SECTION/"
+REPO_SUITES[2]="squeeze squeeze-proposed"
+REPO_SECTIONS[2]="main contrib non-free"
+REPO_BASE_URL[2]="http://repo.pb.local/pb-debian/dists/SUITE/SECTION/binary-amd64"
+REPO_ORIGIN[2]="profitbricks"
 
-REPOS=2
+REPO_SUITES[3]="squeeze-dev"
+REPO_SECTIONS[3]="main contrib non-free"
+REPO_BASE_URL[3]="http://repo.pb.local/pb-debian-dev/dists/SUITE/SECTION/binary-amd64"
+REPO_ORIGIN[3]="profitbricks"
+
+REPOS=3
 
 for REPO in $(seq 0 $REPOS) ; do
-       if [ "$REPO" == 0 ] ; then
-               ORIGIN=debian
-       else
-               ORIGIN=profitbricks
-       fi
        for SUITE in ${REPO_SUITES[$REPO]} ; do
                for SECTION in ${REPO_SECTIONS[$REPO]} ; do
                        URL=$(echo ${REPO_BASE_URL[$REPO]} | sed -s "s#SUITE#$SUITE#" | sed -s "s#SECTION#$SECTION#")/Packages
                        echo $URL
                        wget  $URL -o /dev/null
-                       [ -s Packages ] && ./debian_packages2db.py Packages $ORIGIN
+                       [ -s Packages ] && ./debian_packages2db.py Packages ${REPO_ORIGIN[$REPO]}
                        rm Packages
                done
        done