def _do_install_one(reg, app_loc, relative_path):
 LOG.info(('=== Installing app at %s' % (app_loc,)))
 try:
  app_loc = os.path.realpath(app_loc)
  (app_name, version, desc, author) = get_app_info(app_loc)
 except (ValueError, OSError) as ex:
  LOG.error(ex)
  return False
 app = registry.HueApp(app_name, version, app_loc, desc, author)
 if relative_path:
  app.use_rel_path()
 else:
  app.use_abs_path()
 if reg.contains(app):
  LOG.warn(('=== %s is already installed' % (app,)))
  return True
 return (reg.register(app) and build.make_app(app) and app.install_conf())

def _do_install_one ( reg , app_loc , relative_path ) : LOG . info ( ( '=== Installing app at %s' % ( app_loc , ) ) ) try : app_loc = os . path . realpath ( app_loc ) ( app_name , version , desc , author ) = get_app_info ( app_loc ) except ( ValueError , OSError ) as ex : LOG . error ( ex ) return False app = registry . HueApp ( app_name , version , app_loc , desc , author ) if relative_path : app . use_rel_path ( ) else : app . use_abs_path ( ) if reg . contains ( app ) : LOG . warn ( ( '=== %s is already installed' % ( app , ) ) ) return True return ( reg . register ( app ) and build . make_app ( app ) and app . install_conf ( ) )
install one app .