#1765 maven builds break when /usr/bin/mvn is a symlink
Closed: Duplicate by tkopecek. Opened by cobrien.

After installing the buildroot but prior to invoking mvn to begin the build process, kojid on the builder will check that /usr/bin/mvn exists in the root dir. However, in instances where /usr/bin/mvn is an absolutely symlink (such as with the maven module on rhel 8), this check will fail as the symlink will appear to be broken (from outside of the chroot).

Easy fix is to switch from os.path.exists to os.path.lexists which will pass if the /usr/bin/mvn is either a file or a symlink (even if apparently broken).


Duplicate of #1593

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1765

Please continue any further discussion there.

Metadata
Related Pull Requests