# HG changeset patch # User Doug Simon # Date 1383217687 -3600 # Node ID 1fbe3ca3d30dccc2ab682e132ffff8e1162a4c80 # Parent b038b643a3a4600a7836d995d9936e8bb62449e5 don't equate missing current annotation processor file with it being out of date diff -r b038b643a3a4 -r 1fbe3ca3d30d mxtool/mx.py --- a/mxtool/mx.py Wed Oct 30 21:49:04 2013 +0100 +++ b/mxtool/mx.py Thu Oct 31 12:08:07 2013 +0100 @@ -330,14 +330,13 @@ aps = self.annotation_processors() outOfDate = False currentApsFile = join(self.suite.mxDir, 'currentAnnotationProcessors', self.name) - if exists(currentApsFile): + currentApsFileExists = exists(currentApsFile) + if currentApsFileExists: with open(currentApsFile) as fp: currentAps = [l.strip() for l in fp.readlines()] if currentAps != aps: outOfDate = True - else: - outOfDate = True - if outOfDate: + if outOfDate or not currentApsFileExists: if not exists(dirname(currentApsFile)): os.mkdir(dirname(currentApsFile)) with open(currentApsFile, 'w') as fp: