예제 #1
0
    def alphaFileUpdate(self):
        lastAlphaMod = os.path.getmtime(Globals.ALPHAFILE)
        if lastAlphaMod > Globals.LASTALPHAMOD or Globals.MACREPLICAUPDATE or Globals.STATSUPDATE:
            Globals.log.info("New Alpha File Update")
            Globals.LASTALPHAMOD = lastAlphaMod 

            Globals.printNewPeriod()
            Globals.PERIOD += 1
            rulePairList = EvalRules.updateAlphas()
            IPTransition.handleRules(rulePairList)
            IPTransition.printTargetInstallPairs(Globals.TARGETRULES, Globals.INSTALLEDRULES, Globals.TRANSITRULES)
	    Globals.MACREPLICAUPDATE = False
            Globals.STATSUPDATE = False
            
            Globals.log.info("Done Alpha File Update")
        self.post_callback(Globals.ALPHA_CHECK_PERIOD, self.alphaFileUpdate)
예제 #2
0
def alphaFileUpdate():
    Globals.printNewPeriod()
    Globals.PERIOD += 1
    rulePairList = EvalRules.updateAlphas()
    IPTransition.handleRules(rulePairList)
    IPTransition.printTargetInstallPairs(Globals.TARGETRULES, Globals.INSTALLEDRULES, Globals.TRANSITRULES)