def upgradeStage2(self, version, files_count): self.publishEvent(TICK, 0.0, "Upgrading the upgrade system") rsync = PokerRsync( self.config, self.settings, Constants.RSYNC + Constants.EXCLUDES + Constants.BANDWIDTH + [ "--delete", "-a", "@SOURCE@/" + "%s/%s/" % (version, self.upgrades), Constants.UPGRADES_DIR ]) rsync.registerHandler(RSYNC_DONE, lambda: self.upgradeStage3(version, files_count)) rsync.registerHandler(RSYNC_FAILED, self.failed) rsync.spawn()
def upgradeStage2(self, version, files_count): self.publishEvent(TICK, 0.0, "Upgrading the upgrade system") rsync = PokerRsync(self.config, self.settings, Constants.RSYNC + Constants.EXCLUDES + Constants.BANDWIDTH + [ "--delete", "-a", "@SOURCE@/" + "%s/%s/" % ( version, self.upgrades ), Constants.UPGRADES_DIR ]) rsync.registerHandler(RSYNC_DONE, lambda: self.upgradeStage3(version, files_count)) rsync.registerHandler(RSYNC_FAILED, self.failed) rsync.spawn()
def spawn(self): self.publishEvent(TICK, 0.0, "Retrieving the client upgrade") PokerRsync.spawn(self)
def spawn(self): self.publishEvent(TICK, 0.0, "Looking for the new client upgrade") PokerRsync.spawn(self)