fedora-copr / copr

RPM build system - upstream for https://copr.fedorainfracloud.org/
113 stars 61 forks source link

Support build-time dependencies from other storages #3461

Closed FrostyX closed 1 month ago

FrostyX commented 1 month ago

Fix #3446

When a Copr defines a build-time dependency on copr://foo/bar and the foo/bar project uses Pulp storage, the repository baseurl is now generated correctly.

While the change itself was very simple, I needed to move some code around to avoid circular dependencies.

FrostyX commented 1 month ago

I finally tested this on STG and it works fine. The repo is present and has the correct baseurl.

{'baseurl': 'https://pulp.stage.devshift.net/api/pulp-content/copr/frostyx/test-pulp-dependency/fedora-40-x86_64/',
 'id': 'copr_frostyx_test_pulp_dependency_priority_50',
 'name': 'Additional repo copr_frostyx_test_pulp_dependency_priority_50',
 'priority': 50},

And the actual dependency is intalled from it just fine.

 python3-copr                         noarch 2.0-1.fc40                 copr_frostyx_test_pulp_dependency_priority_50 243.5 KiB

PTAL