Mercurial > hg > graal-compiler
comparison mxtool/mx.py @ 15692:5ec52f033e58
mxtool: minor fix of optional field usage
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Thu, 15 May 2014 22:25:34 +0200 |
parents | 50fbda571d99 |
children | e563b7668db5 |
comparison
equal
deleted
inserted
replaced
15691:6a13c422fca4 | 15692:5ec52f033e58 |
---|---|
601 | 601 |
602 includedInJDK = getattr(self, 'includedInJDK', None) | 602 includedInJDK = getattr(self, 'includedInJDK', None) |
603 if includedInJDK and java().javaCompliance >= JavaCompliance(includedInJDK): | 603 if includedInJDK and java().javaCompliance >= JavaCompliance(includedInJDK): |
604 return None | 604 return None |
605 | 605 |
606 return _download_file_with_sha1(self.name, path, self.urls, self.sha1, sha1path, resolve, self.optional) | 606 return _download_file_with_sha1(self.name, path, self.urls, self.sha1, sha1path, resolve, not self.optional) |
607 | 607 |
608 def get_source_path(self, resolve): | 608 def get_source_path(self, resolve): |
609 if self.sourcePath is None: | 609 if self.sourcePath is None: |
610 return None | 610 return None |
611 path = _make_absolute(self.sourcePath, self.suite.dir) | 611 path = _make_absolute(self.sourcePath, self.suite.dir) |