1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
|
3 |
#depwalker |
#depwalker |
4 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.7 2008-01-13 21:32:38 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.9 2008-02-26 19:51:40 niro Exp $ |
5 |
|
|
6 |
# default die function |
# default die function |
7 |
die() |
die() |
175 |
|
|
176 |
while read SYM DEPNAME |
while read SYM DEPNAME |
177 |
do |
do |
178 |
|
# exclude empty depnames |
179 |
|
[[ -z ${DEPNAME} ]] && continue |
180 |
|
|
181 |
# exclude all already processed deps -without version |
# exclude all already processed deps -without version |
182 |
if ! checklist_processeddeps "${DEPNAME%-*}" |
if ! checklist_processeddeps "${DEPNAME%-*}" |
183 |
then |
then |
185 |
fi |
fi |
186 |
|
|
187 |
# mark depfile as processed to prevent double runs -without version |
# mark depfile as processed to prevent double runs -without version |
188 |
PROCESSEDDEPS="${PROCESSEDDEPS} ${DEPNAME%-*}" |
# but do not add any virtuals to PROCESSEDDEPS or their resolved |
189 |
|
# pkgnames will be ignored and they are missing on the dependecy-list |
190 |
|
if [[ ${DEPNAME/virtual\//} = ${DEPNAME} ]] |
191 |
|
then |
192 |
|
PROCESSEDDEPS="${PROCESSEDDEPS} ${DEPNAME%-*}" |
193 |
|
fi |
194 |
|
|
195 |
HIGHEST_DEPFILE=$(dep2highest_magefile "${DEPNAME}") |
HIGHEST_DEPFILE=$(dep2highest_magefile "${DEPNAME}") |
196 |
|
|