示例#1
0
 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()
示例#2
0
 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()
示例#3
0
 def spawn(self):
     self.publishEvent(TICK, 0.0, "Retrieving the client upgrade")
     PokerRsync.spawn(self)
示例#4
0
 def spawn(self):
     self.publishEvent(TICK, 0.0, "Looking for the new client upgrade")
     PokerRsync.spawn(self)
示例#5
0
 def spawn(self):
     self.publishEvent(TICK, 0.0, "Retrieving the client upgrade")
     PokerRsync.spawn(self)
示例#6
0
 def spawn(self):
     self.publishEvent(TICK, 0.0, "Looking for the new client upgrade")
     PokerRsync.spawn(self)