Changeset 3264

Show
Ignore:
Timestamp:
07/18/07 14:15:32 (1 year ago)
Author:
tg
Message:

fix dependency calculation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/mk/package.mk

    r3262 r3264  
    104104$$(IDIR_$(1))/CONTROL/control: ${_PATCH_COOKIE} 
    105105        ${MBSH} ${SCRIPT_DIR}/make-ipkg-dir.sh $${IDIR_$(1)} $${ICONTROL_$(1)} $(3) $(4) 
    106         if [[ -n "$${IDEPEND_$(1)}" ]]; then \ 
     106        adeps='$$(strip $${IDEPEND_$(1)})'; if [[ -n $$$$adeps ]]; then \ 
    107107                comma=; \ 
    108108                deps=; \ 
    109109                last=; \ 
    110                 for dep in $${IDEPEND_$(1)}; do \ 
     110                for dep in $$$$adeps; do \ 
    111111                        if [[ $$$$last = kernel && $$$$dep = \(* ]]; then \ 
    112112                                deps="$$$$deps $$$$dep"; \ 
     
    115115                        fi; \ 
    116116                        comma=", "; \ 
     117                        last=$$$$dep; \ 
    117118                done; \ 
    118119                echo "Depends: $$$$deps" >>$${IDIR_$(1)}/CONTROL/control; \