summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-04 19:14:26 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-04 19:14:26 +0200
commite23aa1e977226df5b4c61200b7704567cbb86e35 (patch)
tree97833ba1e1849751bea7da72bc366295ad5fb8fd /include
parent163fbc7dfd8b3e0a17f1154b29f2ba02564877ea (diff)
pkglist: The PKG_PATH is already known, no need to figure it out by ourselves
Diffstat (limited to 'include')
-rwxr-xr-xinclude/pkglist6
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]}