[Rpm-maint] [rpm-software-management/rpm] Unexpected behavior when using -q --queryformat in %pre scriplet (#1331)

Florian Festi notifications at github.com
Thu Aug 13 14:45:07 UTC 2020


`%{VERSION}` is replaced within the spec file itself. You need to use `%%{VERSION}` to avoid expanding the macro right away.
As you already said this is probably a really bad idea anyway. RPM actually does backup modified config files on it's own if they are tagged as config files in the package. Do things like this in a %pre script should not be necessary for all but very exotic cases.

-- 
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/issues/1331#issuecomment-673521234
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200813/9c217f32/attachment.html>


More information about the Rpm-maint mailing list