mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-10 07:11:39 +00:00
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:
parent
3353c13d83
commit
40f576b7b9
2 changed files with 10 additions and 23 deletions
|
@ -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/}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue