Adding a hash in a release build generates an error
Releases provide the release tar file hash in the VERSION
file. This is read and loaded when the RSB starts a set build. If the package being built has a development hash in its configuration file the addition of that hash to the hash table results in an error because the hash is present and the value is different.
If the RSB is in release mode (%{release} == 1
) do not raise an error. This lets the error happen during development if there is a duplicate and lets us ship untouched config files with the release versions of the tar files and hashes defined in VERSION
.