avoid collisions when downloading files from different builds with the same path and filename

This commit is contained in:
Mike Bonnet 2011-12-12 12:28:41 -05:00
parent 58f8fe0b78
commit 3d28cc0ac3

View file

@ -624,7 +624,7 @@ class VMExecTask(BaseTaskHandler):
from the server. Returns an open file object. from the server. Returns an open file object.
""" """
# fileinfo['localpath'] is set by getFileList() # fileinfo['localpath'] is set by getFileList()
localpath = os.path.join(self.buildreq_dir, type, fileinfo['localpath']) localpath = os.path.join(self.buildreq_dir, buildinfo['name'], type, fileinfo['localpath'])
if not os.path.isfile(localpath): if not os.path.isfile(localpath):
remote_pi = koji.PathInfo(self.options.topurl) remote_pi = koji.PathInfo(self.options.topurl)
if type == 'rpm': if type == 'rpm':