Fix copr check

Per https://docs.pagure.org/copr.copr/user_documentation.html#rpm-macros
the `%copr_username` macro includes `@` at the start.
This commit is contained in:
Nikita Popov 2024-07-15 09:13:31 +02:00
parent 626da9456a
commit d3496ff556

View file

@ -1,6 +1,6 @@
# We assume that we're building a snapshot if the if the build happens
# in Copr and the project has this prefix: @fedora-llvm-team/llvm-snapshots-
%global copr_snapshot_build_detected %(/bin/bash -fc 'if [[ "%{?copr_username}/%{?copr_projectname}" == fedora-llvm-team/llvm-snapshots-* ]];
%global copr_snapshot_build_detected %(/bin/bash -fc 'if [[ "%{?copr_username}/%{?copr_projectname}" == @fedora-llvm-team/llvm-snapshots-* ]];
then
echo "yes"
else