From 6e90f39ff729714516779f96875dc9b46854b094 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sun, 8 Jan 2012 15:27:12 -0300 Subject: Get_repos scripts updates parabolaweb package database --- get_repos | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 get_repos 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 -- cgit v1.2.3-54-g00ecf