예제 #1
0
파일: updater.py 프로젝트: StriykeR/xiin
    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)
예제 #2
0
파일: updater.py 프로젝트: Iro4ka/xiin
    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)
예제 #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