parameters: (self)
return_statement: return info
docstring: Get the linked packages.
docstring_summary: Get the linked packages.
docstring_tokens: Get the linked packages .
function: def _get_linked_packages(self):
          """Get the linked packages.
          """
          info = self._get_local_data('linked_packages')
          dname = pjoin(self.app_dir, 'staging', 'linked_packages')
          for (name, source) in info.items():
              info[name] = dict(source=source, filename='', tar_dir=dname)
  
          if not osp.exists(dname):
              return info
  
          for path in glob(pjoin(dname, '*.tgz')):
              path = osp.abspath(path)
              data = read_package(path)
              name = data['name']
              if name not in info:
                  self.logger.warn('Removing orphaned linked package %s' % name)
                  os.remove(path)
                  continue
              item = info[name]
              item['filename'] = osp.basename(path)
              item['path'] = path
              item['version'] = data['version']
              item['data'] = data
          return info
function_tokens: def _get_linked_packages ( self ) : info = self . _get_local_data ( 'linked_packages' ) dname = pjoin ( self . app_dir , 'staging' , 'linked_packages' ) for ( name , source ) in info . items ( ) : info [ name ] = dict ( source = source , filename = '' , tar_dir = dname ) if not osp . exists ( dname ) : return info for path in glob ( pjoin ( dname , '*.tgz' ) ) : path = osp . abspath ( path ) data = read_package ( path ) name = data [ 'name' ] if name not in info : self . logger . warn ( 'Removing orphaned linked package %s' % name ) os . remove ( path ) continue item = info [ name ] item [ 'filename' ] = osp . basename ( path ) item [ 'path' ] = path item [ 'version' ] = data [ 'version' ] item [ 'data' ] = data return info