summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg13
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/pkg b/bin/pkg
index 84f1c98..97b039b 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -1,6 +1,5 @@
#!/usr/bin/env zsh
# pkg - /home package manager and zsh playground
-
typeset -a -U triggers
##
@@ -199,9 +198,17 @@ list_type_local () {
list_update_remote () {
if [[ $PKG_PROTO = 'ssh' ]] {
- scp -q $PKG_HOST:$PKG_PATH/.list .list-remote
+ ssh $PKG_HOST "$PKG_PATH/core/include/pkglist $PKG_PATH" > .list-remote
+ if (( newmode == 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' ]] {
- cp $PKG_ROOT/.list .list-remote
+ $PKG_PATH/core/include/pkglist $PKG_PATH > .list-remote
+ if (( newmode == 0 )) {
+ cp $PKG_ROOT/.list .list-remote
+ warn "The pkglist version on your packages_root is outdated, please update\n"
+ }
}
}