Fix help
This commit is contained in:
parent
269a2786f3
commit
2fdd92fb58
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# ordered requirements
|
# ordered requirements
|
||||||
%include util.sh env.sh options.sh config.sh
|
%include util.sh env.sh print.sh options.sh config.sh
|
||||||
|
|
||||||
# everything else
|
# everything else
|
||||||
%include *.sh
|
%include *.sh
|
||||||
|
|
@ -61,11 +61,11 @@ info)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
install)
|
install)
|
||||||
fetch_pkglist $sudo > $_OUTPUT || exit $?
|
|
||||||
if [ -z "$2" ]
|
if [ -z "$2" ]
|
||||||
then
|
then
|
||||||
echo "No package specified" >&2
|
echo "No package specified" >&2
|
||||||
else
|
else
|
||||||
|
fetch_pkglist $sudo > $_OUTPUT || exit $?
|
||||||
shift 1
|
shift 1
|
||||||
pkglist=$(LOG=true resolve_packages $*) || exit $?
|
pkglist=$(LOG=true resolve_packages $*) || exit $?
|
||||||
pkglist=$(INCLUDE_PACKAGES=true resolve_deps $* | tr '\n' ' ')
|
pkglist=$(INCLUDE_PACKAGES=true resolve_deps $* | tr '\n' ' ')
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ Config file (zpkg.conf):
|
||||||
SSH_ADDRESS SSH access for deploy
|
SSH_ADDRESS SSH access for deploy
|
||||||
HTTP_ADDRESS HTTP address for downloading packages
|
HTTP_ADDRESS HTTP address for downloading packages
|
||||||
PKG_PATH Path to the local package database
|
PKG_PATH Path to the local package database
|
||||||
COMPRESSION Compression configuration, extension:binary:parallel_binary:options
|
COMPRESSION Compression configuration, format: extension:binary:parallel_binary:options. Default: xz:xz:pixz
|
||||||
ALLOW_ROOT Set to true to allow running as root without -f. Default: false
|
ALLOW_ROOT Set to true to allow running as root without -f. Default: false
|
||||||
UPDATE_REMOVE Remove packages on update. Default: true
|
UPDATE_REMOVE Remove packages on update. Default: true
|
||||||
Config can be overwritten by environment by appending 'ZPKG_' to the corresponding variable"
|
Config can be overwritten by environment by appending 'ZPKG_' to the corresponding variable"
|
||||||
|
|
@ -75,9 +75,9 @@ package_info() {
|
||||||
|
|
||||||
printf "Name: %s\n" "$1"
|
printf "Name: %s\n" "$1"
|
||||||
printf "Description: %s\n" "$desc"
|
printf "Description: %s\n" "$desc"
|
||||||
echo ""
|
printf "Status: %s\n" "$status"
|
||||||
printf "Status: %s\n" "$status"
|
|
||||||
printf "Dependencies: %s\n" "$deps"
|
printf "Dependencies: %s\n" "$deps"
|
||||||
printf "Package size: %s\n" "$csize"
|
printf "Package size: %s\n" "$csize"
|
||||||
printf "Installed size: %s\n" "$isize"
|
printf "Installed size: %s\n" "$isize"
|
||||||
|
printf ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue