summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-09-07 20:29:00 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-09-07 20:29:00 +0200
commitb75326edbdd0ae11f4e10aedb2f64ce536b67479 (patch)
tree00e5401500c9947ffc1cd3c69fffb7993f84c2d8
parent75f1cb22a6aa272470b7299047aadd7c7063ce97 (diff)
downloadrepo-tools-b75326edbdd0ae11f4e10aedb2f64ce536b67479.tar.gz
repo-tools-b75326edbdd0ae11f4e10aedb2f64ce536b67479.tar.xz
mirror gwdg.de instead of kernel.org; ignore empty repos (needed for multilib)
-rwxr-xr-xcreatelinks6
-rwxr-xr-xsogrep3
-rwxr-xr-xsyncrepo2
3 files changed, 3 insertions, 8 deletions
diff --git a/createlinks b/createlinks
index 9d7db15..7c975b7 100755
--- a/createlinks
+++ b/createlinks
@@ -22,9 +22,9 @@ getpkgname() {
for repo in ${repos[@]}; do
for arch in ${arches[@]}; do
- echo "$repo/$arch..."
- # (
repodir=${repo}/os/${arch}
+ [ ! -f ${target}/$repodir/$repo.db ] && continue
+ echo "$repo/$arch..."
cached=false
# extract old file archive
@@ -61,9 +61,7 @@ for repo in ${repos[@]}; do
mkdir -p $pkgdir
bsdtar --exclude=*.tar.* -czf ${pkgdir}/${repo}.links.tar.gz -C ${tmp}/tmp/${repodir} .
fi
- # )&
done
-#wait
done
rm -rf ${tmp}
diff --git a/sogrep b/sogrep
index b80d66f..e9b3b0b 100755
--- a/sogrep
+++ b/sogrep
@@ -21,9 +21,6 @@ for arch in ${arches[@]}; do
if [ -f ${db} ]; then
mkdir -p ${tmp}/${repo}/${arch}
bsdtar -xf ${db} -C ${tmp}/${repo}/${arch}
- else
- echo "${db} not found!"
- exit 1
fi
done
diff --git a/syncrepo b/syncrepo
index b98ee8f..07ed077 100755
--- a/syncrepo
+++ b/syncrepo
@@ -4,7 +4,7 @@ home="$(dirname "$(readlink -f $0)")"
target="${home}/repo"
tmp="${home}/tmp"
lock='/tmp/mirrorsync.lck'
-source='mirrors.kernel.org::archlinux'
+source='ftp5.gwdg.de::pub/linux/archlinux/'
[ ! -d "${target}" ] && mkdir -p "${target}"
[ ! -d "${tmp}" ] && mkdir -p "${tmp}"