mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-03-20 02:12:31 +00:00
fix dependent option
This commit is contained in:
1
scratch
1
scratch
@@ -321,6 +321,7 @@ showdependent() {
|
||||
for port in ${PORT_REPO[@]}; do
|
||||
if [ -d $port ]; then
|
||||
for all in $port/*/$BUILD_SCRIPT; do
|
||||
[ -f $all ] || continue
|
||||
depend=$(grep "^# depends[[:blank:]]*:" $all | sed 's/^# depends[[:blank:]]*:[[:blank:]]*//' | tr ' ' '\n' | awk '!a[$0]++')
|
||||
for dep in ${depend[@]}; do
|
||||
if [ $dep = $1 ]; then
|
||||
|
||||
Reference in New Issue
Block a user