(self)
Get json containing installation info
Get json containing installation info
Get json containing installation info
def get_installinfo(self):
        """Get json containing installation info"""
        Msg().out("Info: searching for messages:", l=Msg.VER)
        for url in self._get_mirrors(self._installinfo):
            infofile = self._get_file(url)
            try:
                with open(infofile, 'r') as filep:
                    self._install_json = json.load(filep)
                for msg in self._install_json["messages"]:
                    Msg().out("Info:", msg)
            except (KeyError, AttributeError, ValueError,
                    OSError, IOError):
                Msg().out("Info: no messages:", infofile, url, l=Msg.VER)
            return self._install_json
def get_installinfo ( self ) : Msg ( ) . out ( "Info: searching for messages:" , l = Msg . VER ) for url in self . _get_mirrors ( self . _installinfo ) : infofile = self . _get_file ( url ) try : with open ( infofile , 'r' ) as filep : self . _install_json = json . load ( filep ) for msg in self . _install_json [ "messages" ] : Msg ( ) . out ( "Info:" , msg ) except ( KeyError , AttributeError , ValueError , OSError , IOError ) : Msg ( ) . out ( "Info: no messages:" , infofile , url , l = Msg . VER ) return self . _install_json