def linked_data(prefix, ignore_channels=False):
 recs = linked_data_.get(prefix)
 if (recs is None):
  recs = linked_data_[prefix] = odict()
  meta_dir = join(prefix, u'conda-meta')
  if isdir(meta_dir):
   for fn in listdir(meta_dir):
    if fn.endswith(u'.json'):
     dist_name = fn[:(-5)]
     load_linked_data(prefix, dist_name, ignore_channels=ignore_channels)
 return recs

def linked_data ( prefix , ignore_channels = False ) : recs = linked_data_ . get ( prefix ) if ( recs is None ) : recs = linked_data_ [ prefix ] = odict ( ) meta_dir = join ( prefix , u'conda-meta' ) if isdir ( meta_dir ) : for fn in listdir ( meta_dir ) : if fn . endswith ( u'.json' ) : dist_name = fn [ : ( - 5 ) ] load_linked_data ( prefix , dist_name , ignore_channels = ignore_channels ) return recs
return a dictionary of the linked packages in prefix .