fix url generation when downloading buildreqs

This commit is contained in:
Mike Bonnet 2011-03-29 14:46:51 -04:00
parent 408a6778c0
commit 9d8aae02b9

View file

@ -601,14 +601,13 @@ class VMExecTask(BaseTaskHandler):
remote_pi = koji.PathInfo(self.options.topurl)
if type == 'rpm':
remote_url = remote_pi.build(buildinfo) + '/' + \
remote_pi.rpm(fileinfo)
fileinfo['localpath']
elif type == 'maven':
# the relevant Maven info is included in the buildinfo
remote_url = remote_pi.mavenbuild(buildinfo, buildinfo) + '/' + \
fileinfo['filename']
remote_url = remote_pi.mavenbuild(buildinfo) + '/' + \
fileinfo['localpath']
elif type == 'win':
remote_url = remote_pi.winbuild(buildinfo) + '/' + \
remote_pi.winfile(fileinfo)
fileinfo['localpath']
else:
raise koji.BuildError, 'unsupported file type: %s' % type
koji.ensuredir(os.path.dirname(localpath))