def _get_src(tree_base, source, saltenv='base'):
 parsed = _urlparse(source)
 sbase = os.path.basename(source)
 dest = os.path.join(tree_base, 'SOURCES', sbase)
 if parsed.scheme:
  lsrc = __salt__['cp.get_url'](source, dest, saltenv=saltenv)
 else:
  shutil.copy(source, dest)

def _get_src ( tree_base , source , saltenv = 'base' ) : parsed = _urlparse ( source ) sbase = os . path . basename ( source ) dest = os . path . join ( tree_base , 'SOURCES' , sbase ) if parsed . scheme : lsrc = __salt__ [ 'cp.get_url' ] ( source , dest , saltenv = saltenv ) else : shutil . copy ( source , dest )
get the named sources and place them into the tree_base .