Commit 776f4066 by Kyle MacFarlane Committed by Timothée Peignier

remove duplicate version calculation which causes extra hits to storage backend

Signed-off-by: Timothée Peignier <timothee.peignier@tryphon.org>
parent edc4d502
...@@ -49,8 +49,10 @@ class Packager(object): ...@@ -49,8 +49,10 @@ class Packager(object):
need_update, version = self.versioning.need_update( need_update, version = self.versioning.need_update(
package['output'], package['paths']) package['output'], package['paths'])
if need_update or self.force: if need_update or self.force:
output_filename = self.versioning.output_filename(package['output'], output_filename = self.versioning.output_filename(
self.versioning.version(package['paths'])) package['output'],
version
)
self.versioning.cleanup(package['output']) self.versioning.cleanup(package['output'])
if self.verbose or self.force: if self.verbose or self.force:
print "Version: %s" % version print "Version: %s" % version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment