From 33d8e5be3720bdc467007fd919e2e92878830ebb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Oct 2008 19:07:26 +0200 Subject: bin/pkg: Fixed another, now it seems to work --- bin/pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index b34993a..8e8336d 100755 --- a/bin/pkg +++ b/bin/pkg @@ -199,14 +199,14 @@ list_type_local () { list_update_remote () { export PDIR if [[ $PKG_PROTO = 'ssh' ]] { - ssh $PKG_HOST "$PKG_PATH/core/include/pkglist $PKG_PATH" > .list-remote - if (( newmode == 0 )) { + ssh $PKG_HOST "PDIR='$PDIR' $PKG_PATH/core/include/pkglist $PKG_PATH" > .list-remote + if [[ ${#$(cat .list-remote)} == 0 ]] { scp -q $PKG_HOST:$PKG_PATH/.list .list-remote warn "The pkglist version on your packages_root is outdated, please update\n" } } elif [[ $PKG_PROTO = 'file' ]] { $PKG_PATH/core/include/pkglist $PKG_PATH > .list-remote - if (( newmode == 0 )) { + if [[ ${#$(cat .list-remote)} == 0 ]] { cp $PKG_ROOT/.list .list-remote warn "The pkglist version on your packages_root is outdated, please update\n" } -- cgit v1.2.3