def print_deps(i):
    """
    Input:  {
              data_uoa                   - data UOA of the repo
                 or
              repo_deps                  - dict with dependencies on other shared repos

              (out_prefix)               - output prefix befor each string
            }

    Output: {
              return       - return code =  0, if successful
                                         >  0, if error
              (error)      - error text if return > 0

              repo_deps
            }

    """

    o=i.get('out','')

    op=i.get('out_prefix','')

    duoa=i.get('data_uoa','')
    if duoa!='':
       # Get configuration
       r=ck.load_repo_info_from_cache({'repo_uoa':duoa})
       if r['return']>0: return r

       d=r['dict']
       rp1=d.get('dict',{}).get('repo_deps',[])
    else:
       rp1=i['repo_deps']

    if len(rp1)==0:
       rp1=d.get('repo_deps',[]) # for compatibility ...

    if o=='con' and len(rp1)>0:
       for q in rp1:
           ruoa=q.get('repo_uoa','')
           ruid=q.get('repo_uid','')
           rurl=q.get('repo_url','')

           x=op+ruoa
           if ruid!='': x+='; '+ruid
           elif rurl!='': x+='; '
           if rurl!='': x+='; '+rurl

           ck.out(x)

    return {'return':0, 'repo_deps':rp1}
def print_deps ( i ) : o = i . get ( 'out' , '' ) op = i . get ( 'out_prefix' , '' ) duoa = i . get ( 'data_uoa' , '' ) if duoa != '' : r = ck . load_repo_info_from_cache ( { 'repo_uoa' : duoa } ) if r [ 'return' ] > 0 : return r d = r [ 'dict' ] rp1 = d . get ( 'dict' , { } ) . get ( 'repo_deps' , [ ] ) else : rp1 = i [ 'repo_deps' ] if len ( rp1 ) == 0 : rp1 = d . get ( 'repo_deps' , [ ] ) if o == 'con' and len ( rp1 ) > 0 : for q in rp1 : ruoa = q . get ( 'repo_uoa' , '' ) ruid = q . get ( 'repo_uid' , '' ) rurl = q . get ( 'repo_url' , '' ) x = op + ruoa if ruid != '' : x += '; ' + ruid elif rurl != '' : x += '; ' if rurl != '' : x += '; ' + rurl ck . out ( x ) return { 'return' : 0 , 'repo_deps' : rp1 }
Input:  {
              data_uoa                   - data UOA of the repo
                 or
              repo_deps                  - dict with dependencies on other shared repos

              (out_prefix)               - output prefix befor each string
            }

    Output: {
              return       - return code =  0, if successful
                                         >  0, if error
              (error)      - error text if return > 0

              repo_deps
            }