forked from kiss-community/kiss
kiss: Added d|download to pre-download package sources.
This commit is contained in:
parent
5acaff9bdc
commit
81170f6cbb
6
kiss
6
kiss
@ -1362,7 +1362,7 @@ args() {
|
|||||||
# CRUX style usage using the current directory as the name of the package
|
# CRUX style usage using the current directory as the name of the package
|
||||||
# to be operated on. This needs to sit before the 'as_root()' calls as
|
# to be operated on. This needs to sit before the 'as_root()' calls as
|
||||||
# they reset the current working directory during their invocations.
|
# they reset the current working directory during their invocations.
|
||||||
[ "$1" ] || case $action in b|build|c|checksum|i|install|r|remove)
|
[ "$1" ] || case $action in b|build|c|checksum|d|download|i|install|r|remove)
|
||||||
export KISS_PATH=${PWD%/*}:$KISS_PATH
|
export KISS_PATH=${PWD%/*}:$KISS_PATH
|
||||||
set -- "${PWD##*/}"
|
set -- "${PWD##*/}"
|
||||||
esac
|
esac
|
||||||
@ -1447,15 +1447,17 @@ args() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
b|build) pkg_build "${@:?No packages installed}" ;;
|
b|build) pkg_build "${@:?No packages installed}" ;;
|
||||||
|
d|download) for pkg do pkg_sources "$pkg"; done ;;
|
||||||
l|list) pkg_list "$@" ;;
|
l|list) pkg_list "$@" ;;
|
||||||
u|update) pkg_updates ;;
|
u|update) pkg_updates ;;
|
||||||
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
||||||
v|version) printf '2.1.9\n' ;;
|
v|version) printf '2.1.9\n' ;;
|
||||||
|
|
||||||
h|help|-h|--help|'')
|
h|help|-h|--help|'')
|
||||||
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg]...'
|
log 'kiss [a|b|c|d|i|l|r|s|u|v] [pkg]...'
|
||||||
log 'alternatives List and swap to alternatives'
|
log 'alternatives List and swap to alternatives'
|
||||||
log 'build Build a package'
|
log 'build Build a package'
|
||||||
|
log 'download Pre-download all sources'
|
||||||
log 'checksum Generate checksums'
|
log 'checksum Generate checksums'
|
||||||
log 'install Install a package'
|
log 'install Install a package'
|
||||||
log 'list List installed packages'
|
log 'list List installed packages'
|
||||||
|
Loading…
Reference in New Issue
Block a user