Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C API: support shell-style variable substitution #1696

Conversation

evan-goode
Copy link
Member

Rework dnf_repo_substitute to call the C++ API's ConfigParser::substitute instead of librepo's lr_url_substitute. This brings support for shell-style variable expressions to the C API, which was added to the C++ API in #1622.

We could instead add support for the shell-style variable substitution in librepo's lr_url_substitute, which might have additional benefits elsewhere, but it would take more development time, risk breaking something, and create yet another implementation of this feature.

Resolves #1690.

Rework `dnf_repo_substitute` to call the C++ API's
ConfigParser::substitute instead of librepo's lr_url_substitute.

Resolves rpm-software-management#1690
@evan-goode evan-goode requested a review from kontura February 7, 2025 19:08
@kontura kontura self-assigned this Feb 10, 2025
@kontura
Copy link
Contributor

kontura commented Feb 10, 2025

The failing tests are not related and they pass locally.
Thanks.

@kontura kontura merged commit 01b3f2c into rpm-software-management:dnf-4-master Feb 10, 2025
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dnf_repo_substitute missing shell-style variable expansion
3 participants