summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-01-08 15:27:34 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-01-08 15:27:34 -0300
commita3e0b61d4d14f01442b98deaa18f66ceb3c4b3b9 (patch)
tree3460b278fe0b439c81283777d529679a1d95b830
parent6e90f39ff729714516779f96875dc9b46854b094 (diff)
Use standar naming
-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