We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following two spec files
min.spec
%global version 1.2.3 Version: %{version}
and min_ok.spec
%global myversion 1.2.3 Version: %{myversion}
replace_macros does not work for the former, but works fine for the latter.
replace_macros
$ python3 Python 3.8.5 (default, Aug 12 2020, 00:00:00) [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from pyrpm.spec import Spec, replace_macros >>> spec = Spec.from_file("min.spec") >>> spec.version '%{version}' >>> replace_macros(spec.version, spec) '%{version}' >>> spec = Spec.from_file("min_ok.spec") >>> spec.version '%{myversion}' >>> replace_macros(spec.version, spec) '1.2.3' >>>
The text was updated successfully, but these errors were encountered:
Add test for #33
b50daab
77bbaf3
Thanks @bkircher
Sorry, something went wrong.
bkircher
No branches or pull requests
Consider the following two spec files
min.spec
and min_ok.spec
replace_macros
does not work for the former, but works fine for the latter.The text was updated successfully, but these errors were encountered: