handle logfiles with possibly-duplicate names

This commit is contained in:
Mike Bonnet 2010-07-26 12:19:46 -04:00
parent fa5c7722cd
commit 7a6b44c4a9

View file

@ -8979,8 +8979,12 @@ class HostExports(object):
# move the logs to their final destination
for relpath in results['logs']:
subdir = 'win'
reldir = os.path.dirname(relpath)
if reldir:
subdir = os.path.join(subdir, reldir)
import_build_log(os.path.join(task_dir, relpath),
build_info, subdir='win')
build_info, subdir=subdir)
# update build state
st_complete = koji.BUILD_STATES['COMPLETE']