summaryrefslogtreecommitdiffstats
path: root/createlinks
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-25 06:51:58 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-25 06:51:58 +0200
commit75f1cb22a6aa272470b7299047aadd7c7063ce97 (patch)
tree102eb5cdaeed58a38f9cf8a61dc17dcc348cf91c /createlinks
parent012a236db2bc1914144b6ef055ddd7bf05001195 (diff)
downloadrepo-tools-75f1cb22a6aa272470b7299047aadd7c7063ce97.tar.gz
repo-tools-75f1cb22a6aa272470b7299047aadd7c7063ce97.tar.xz
follow symlinks to support package pool; added testing repositories
Diffstat (limited to 'createlinks')
-rwxr-xr-xcreatelinks6
1 files changed, 3 insertions, 3 deletions
diff --git a/createlinks b/createlinks
index 443657c..9d7db15 100755
--- a/createlinks
+++ b/createlinks
@@ -2,7 +2,7 @@
home="$(dirname "${0}")"
target="${home}/repo"
-repos=('core' 'extra' 'community')
+repos=('core' 'extra' 'community' 'testing' 'community-testing' 'staging' 'multilib')
arches=('i686' 'x86_64')
lock='/tmp/mirrorsync.lck'
tmp="$(mktemp -d)"
@@ -35,7 +35,7 @@ for repo in ${repos[@]}; do
fi
# create file lists
- for pkg in $(find $target/$repodir -type f -name '*.pkg.tar.*'); do
+ for pkg in $(find $target/$repodir -xtype f -name '*.pkg.tar.*'); do
pkgname=$(getpkgname $pkg)
tmppkgdir=${tmp}/tmp/${repodir}/${pkgname}
mkdir -p $tmppkgdir
@@ -66,5 +66,5 @@ for repo in ${repos[@]}; do
#wait
done
-rm -rf ${tmp}
+rm -rf ${tmp}
rm -f "${lock}"