diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-08 19:07:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-08 19:07:26 +0200 |
commit | 33d8e5be3720bdc467007fd919e2e92878830ebb (patch) | |
tree | 92c1aa72cdeb2da5fe870642d368686b373ef1e5 /bin | |
parent | 121306c8b4ee3dee0891b84e2122d49e456bbf16 (diff) |
bin/pkg: Fixed another, now it seems to work
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" } |