public static Exception establishCacheIfNeeded(PrintStream... progress){
  if (m_offline) {
    return null;
  }
  if (REP_MIRROR == null) {
    establishMirror();
  }
  Exception problem=null;
  if (INITIAL_CACHE_BUILD_NEEDED) {
    for (    PrintStream p : progress) {
      p.println("Caching repository meta data, please wait...");
    }
    problem=refreshCache(progress);
    INITIAL_CACHE_BUILD_NEEDED=false;
  }
  return problem;
}

public static Exception establishCacheIfNeeded ( PrintStream ... progress ) { if ( m_offline ) { return null ; } if ( REP_MIRROR == null ) { establishMirror ( ) ; } Exception problem = null ; if ( INITIAL_CACHE_BUILD_NEEDED ) { for ( PrintStream p : progress ) { p . println ( "Caching repository meta data, please wait..." ) ; } problem = refreshCache ( progress ) ; INITIAL_CACHE_BUILD_NEEDED = false ; } return problem ; }
establish the local copy of the package meta data if needed
