diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-04 19:14:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-04 19:14:26 +0200 |
commit | e23aa1e977226df5b4c61200b7704567cbb86e35 (patch) | |
tree | 97833ba1e1849751bea7da72bc366295ad5fb8fd /include/pkglist | |
parent | 163fbc7dfd8b3e0a17f1154b29f2ba02564877ea (diff) |
pkglist: The PKG_PATH is already known, no need to figure it out by ourselves
Diffstat (limited to 'include/pkglist')
-rwxr-xr-x | include/pkglist | 6 |
1 files changed, 3 insertions, 3 deletions
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]} |