# Prepare BuildQueueFile object
qf = BuildQueueFile()
- qf.queue_id = self.queue_id
+ qf.build_queue_id = self.queue_id
qf.lastused = datetime.now()
qf.filename = poolfile_basename
if self.copy_files:
# We need to copy instead of symlink
import utils
- utils.copy(targetfile, queuepath)
+ utils.copy(targetpath, queuepath)
# NULL in the fileid field implies a copy
qf.fileid = None
else:
- os.symlink(targetfile, queuepath)
+ os.symlink(targetpath, queuepath)
qf.fileid = poolfile.file_id
except OSError:
return None