def export_getSoftwareComponents(self): """ Get the list of all the components ( services and agents ) for which the software is installed on the system """ return InstallTools.getSoftwareComponents(getCSExtensions())
def export_getSoftwareComponents( self ): """ Get the list of all the components ( services and agents ) for which the software is installed on the system """ return InstallTools.getSoftwareComponents( getCSExtensions() )
Script.parseCommandLine() args = Script.getPositionalArgs() if len( args ) == 1: args = args[0].split( '/' ) if len( args ) != 2: Script.showHelp() DIRACexit( 1 ) cType = None system = args[0] component = args[1] result = InstallTools.getSoftwareComponents( getCSExtensions() ) if not result[ 'OK' ]: gLogger.error( result[ 'Message' ] ) DIRACexit( 1 ) else: availableComponents = result[ 'Value' ] for compType in availableComponents: if system in availableComponents[ compType ] and component in availableComponents[ compType ][ system ]: cType = compType[:-1].lower() break if not cType: gLogger.error( 'Component %s/%s is not available for installation' % ( system, component ) ) DIRACexit( 1 )