Example #1
0
    def update_all(self, localUrl, remoteUrl):
        updater = DownloadModuleUtil()
        remoteModule = RemoteModuleUtil()
        modUpdateList = remoteModule.get_module_list(remoteUrl)

        for modUpdate in modUpdateList:
            updater.download(remoteUrl + modUpdate, localUrl + modUpdate)
Example #2
0
    def update_all(self, localUrl, remoteUrl):
        updater         = DownloadModuleUtil()
        remoteModule    = RemoteModuleUtil()
        modUpdateList   = remoteModule.get_module_list(remoteUrl)

        for modUpdate in modUpdateList:
            updater.download(remoteUrl + modUpdate, localUrl + modUpdate)
Example #3
0
    def get_list(self, localUrl, remoteUrl):
        """
        Returns a list of modules requiring updates.
        """
        localModule         = localModuleUtil()
        remoteModule        = RemoteModuleUtil()
        remoteModuleDict    = remoteModule.get_module_dict(remoteUrl)
        localModuleDict     = localModule.get_module_dict(localUrl)
        downloadList        = self.build_list(localModuleDict, remoteModuleDict)

        return downloadList
    #end
#end