summaryrefslogtreecommitdiff
path: root/get_repos
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-01-08 15:27:12 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-01-08 15:27:12 -0300
commit6e90f39ff729714516779f96875dc9b46854b094 (patch)
tree6d71ac6170f8b35ec58b01ca2252c1175451a825 /get_repos
parentb26836bcaeea178794941d9cce8d4a94d19fd2eb (diff)
Get_repos scripts updates parabolaweb package database
Diffstat (limited to 'get_repos')
-rwxr-xr-xget_repos33
1 files changed, 33 insertions, 0 deletions
diff --git a/get_repos b/get_repos
new file mode 100755
index 0000000..824ab15
--- /dev/null
+++ b/get_repos
@@ -0,0 +1,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