Remove dependencies hook.

The package group version of this function is identical to the normal
command, so it isn't necessary. Plus it's not clear that there's a
need for a hook on the dependencies command.
This commit is contained in:
Simon Howard 2017-01-08 01:41:38 +01:00
parent 3353c13d83
commit 40f576b7b9
2 changed files with 10 additions and 23 deletions

View file

@ -105,15 +105,6 @@ chocpkg::commands::hook_build() {
do_build
}
chocpkg::commands::hook_dependencies() {
local i
for i in "${!DEPENDENCIES[@]}"; do
local dep="${DEPENDENCIES[$i]}"
echo "$dep"
chocpkg dependencies "$dep"
done | sort | uniq
}
chocpkg::commands::hook_fetch() {
do_fetch
}
@ -148,11 +139,6 @@ chocpkg::commands::build() {
chocpkg::commands::hook_build
}
chocpkg::commands::dependencies() {
chocpkg::commands::configure_for_package "$@"
chocpkg::commands::hook_dependencies
}
chocpkg::commands::fetch() {
chocpkg::commands::configure_for_package "$@"
chocpkg::commands::hook_fetch
@ -178,6 +164,16 @@ chocpkg::commands::shell() {
chocpkg::commands::hook_shell
}
chocpkg::commands::dependencies() {
chocpkg::commands::configure_for_package "$@"
local i
for i in "${!DEPENDENCIES[@]}"; do
local dep="${DEPENDENCIES[$i]}"
echo "$dep"
chocpkg dependencies "$dep"
done | sort | uniq
}
chocpkg::commands::packages() {
for sh_file in $CHOCPKG_ROOT/pkgdef/*.sh; do
basename "${sh_file/%.sh/}"

View file

@ -31,15 +31,6 @@ chocpkg::commands::hook_reinstall() {
done
}
chocpkg::commands::hook_dependencies() {
local i
for i in "${!DEPENDENCIES[@]}"; do
local package="${DEPENDENCIES[$i]}"
echo "$package"
chocpkg dependencies "$package"
done | sort | uniq
}
# Package group is installed if all its packages are installed.
chocpkg::commands::hook_installed() {
local i