summaryrefslogtreecommitdiffstats
path: root/createlinks
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-05 23:39:04 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-05 23:39:04 +0200
commit9a1971d9521c3b835a6860c5d04911e6d14b9bf0 (patch)
treeab3a6d46cb6e138d3088cda2d4e972bc706c2ef9 /createlinks
parent579993610c0af810051f7ea514dadfa6b616c212 (diff)
downloadrepo-tools-9a1971d9521c3b835a6860c5d04911e6d14b9bf0.tar.gz
repo-tools-9a1971d9521c3b835a6860c5d04911e6d14b9bf0.tar.xz
createlinks: iterate over packages with a glob
Diffstat (limited to 'createlinks')
-rwxr-xr-xcreatelinks4
1 files changed, 3 insertions, 1 deletions
diff --git a/createlinks b/createlinks
index fe1ff6f..52ade34 100755
--- a/createlinks
+++ b/createlinks
@@ -36,7 +36,9 @@ for repo in ${repos[@]}; do
fi
# create file lists
- for pkg in $(find $target/$repodir -xtype f -name "*-${arch}.pkg.tar.?z"); do
+ for pkg in "$target/$repodir"/*.pkg.tar.?z; do
+ [[ -f $pkg ]] || continue
+
pkgname=$(getpkgname $pkg)
tmppkgdir=${tmp}/tmp/${repodir}/${pkgname}
mkdir -p $tmppkgdir