From 9a1971d9521c3b835a6860c5d04911e6d14b9bf0 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 5 May 2012 17:39:04 -0400 Subject: createlinks: iterate over packages with a glob --- createlinks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b