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
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to