mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
[BUILD] Calculate the full path ahead of time
This commit is contained in:
parent
4f99f0c6f1
commit
a4de19efdd
@ -334,12 +334,7 @@ class Artifact:
|
|||||||
self.path = path # path/to
|
self.path = path # path/to
|
||||||
self.name = name # elasticsearch-9.9.99
|
self.name = name # elasticsearch-9.9.99
|
||||||
self.ext = ext # tar.gz
|
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))
|
self.fullpath = os.path.join(self.path, "%s.%s" % (self.name, self.ext))
|
||||||
return self.fullpath
|
|
||||||
|
|
||||||
def artifacts(release, path = ''):
|
def artifacts(release, path = ''):
|
||||||
return [Artifact(path, "elasticsearch-%s" % release, t) for t in ['deb', 'tar.gz', 'zip']]
|
return [Artifact(path, "elasticsearch-%s" % release, t) for t in ['deb', 'tar.gz', 'zip']]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user