summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-08 19:07:26 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-08 19:07:26 +0200
commit33d8e5be3720bdc467007fd919e2e92878830ebb (patch)
tree92c1aa72cdeb2da5fe870642d368686b373ef1e5 /bin
parent121306c8b4ee3dee0891b84e2122d49e456bbf16 (diff)
bin/pkg: Fixed another, now it seems to work
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg6
1 files changed, 3 insertions, 3 deletions
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"
}