the postImport callback for image imports is triggered like so:
koji.plugin.run_callbacks('postImport', type='image', image=imgdata, build=build_info, fullpath=fullpath)
However, the fullpath value is from an earlier loop and holds simply the last file from the import, rather than a path that represents the image import as a whole.
fullpath
I'm not sure what the answer here. Some of these postImport callbacks probably need to be refactored anyway.
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/614
Please continue any further discussion there.