On 29. 01. 21 16:26, Daniel P. Berrangé wrote:
Is there a good way to detect that the build is in an emulated copr
env rather than native. Does Copr / mock set any env variable to
show that you're emulated ?
I've talked to Pavel Raiskup on IRC about this.
Copr uses mock's --forcearch option to emulate the environment. The easiest way
to detect it would be if mock automatically exposed a macro that says so:
https://github.com/rpm-software-management/mock/issues/697
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok