From c6819927c63c618e411f6be59965c143fb66a1c5 Mon Sep 17 00:00:00 2001 From: Jean-Louis Dupond Date: Tue, 12 Nov 2024 16:08:57 +0100 Subject: [PATCH] Fix Additional Dependencies on COPR Fix including ADDITIONAL_DEPENDENCIES on COPR. It works fine if the srpm and rpm are build on the same container/directory, as then the file gets created and can be included in the spec when rpmbuild is started. But on COPR for example we build the rpm in another chroot than the srpm, which causes the file to not exist at the start, and results in the additional dependencies to not be included. Signed-off-by: Jean-Louis Dupond --- ovirt-engine-build-dependencies.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovirt-engine-build-dependencies.spec.in b/ovirt-engine-build-dependencies.spec.in index 8924370..cdbcfc3 100644 --- a/ovirt-engine-build-dependencies.spec.in +++ b/ovirt-engine-build-dependencies.spec.in @@ -41,7 +41,7 @@ mvn \ # Install additional dependencies cd %{_builddir}/%{name}-%{version} -for dep in %(cat ADDITIONAL_DEPENDENCIES); do +for dep in $(cat ADDITIONAL_DEPENDENCIES); do mvn dependency:get -Dartifact=${dep} -Dmaven.repo.local=%{_repository} done