[Rpm-maint] [rpm-software-management/rpm] Reset global macro state after each spec query/parse (#1067)

Panu Matilainen notifications at github.com
Wed Feb 12 07:34:45 UTC 2020


Parsing a spec, even unsuccessfully, will affect the global macro
state in any number of ways that may affect the following operations
in unpredictable ways. Lacking any saner way to do this, reset the
entire global macro state after each spec parse in rpmspec and spec
query code (rpmbuild already does this) while maintaining possible
cli-specified target and rcfile.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1067

-- Commit Summary --

  * Reset global macro state after each spec query/parse

-- File Changes --

    M lib/query.c (7)
    M rpmspec.c (12)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1067.patch
https://github.com/rpm-software-management/rpm/pull/1067.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200211/b00809b3/attachment.html>


More information about the Rpm-maint mailing list