[BUILD] Calculate the full path ahead of time

This commit is contained in:
Simon Willnauer 2014-06-03 16:11:18 +02:00
parent 4f99f0c6f1
commit a4de19efdd
1 changed files with 1 additions and 6 deletions

View File

@ -334,12 +334,7 @@ class Artifact:
self.path = path # path/to
self.name = name # elasticsearch-9.9.99
self.ext = ext # tar.gz
self.fullpath = None
def fullpath(self):
if not self.fullpath:
self.fullpath = os.path.join(self.path, "%s.%s" % (self.name, self.ext))
return self.fullpath
self.fullpath = os.path.join(self.path, "%s.%s" % (self.name, self.ext))
def artifacts(release, path = ''):
return [Artifact(path, "elasticsearch-%s" % release, t) for t in ['deb', 'tar.gz', 'zip']]