From e23aa1e977226df5b4c61200b7704567cbb86e35 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 4 Apr 2009 19:14:26 +0200 Subject: pkglist: The PKG_PATH is already known, no need to figure it out by ourselves --- include/pkglist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/pkglist') diff --git a/include/pkglist b/include/pkglist index 405f5a9..305d248 100755 --- a/include/pkglist +++ b/include/pkglist @@ -2,10 +2,10 @@ ## on the PKG_HOST: list available packages ## used by pkg remote-update -# change into package root directory -cd /${(j:/:)${(s:/:)0}[1,-4]} +# change into package root directory (first argument) +cd $1 -for i in *(/,@); { +for i in *(-/); { if [[ -d $i/.git ]] { echo -n "$i git " echo ${$(git --git-dir=$i/.git log -n 1)[2]} -- cgit v1.2.3