[Rpm-maint] [rpm-software-management/rpm] Usage of %end in macros breaks them (#401)
Igor Gnatenko
notifications at github.com
Sun Feb 25 05:59:10 UTC 2018
Imagine something like this:
```
%ldconfig /sbin/ldconfig
%ldconfig_post(n:) %{?ldconfig:%post -p %ldconfig %{?*} %{-n:-n %{-n*}}\
%end\
}
%ldconfig_postun(n:) %{?ldconfig:%postun -p %ldconfig %{?*} %{-n:-n %{-n*}}\
%end\
}
```
```
%ldconfig_post foo
%ldconfig_postun foo
```
will expand into
```
%post -p /sbin/ldconfig foo
%end
%ldconfig_postun foo
```
I have feeling once RPM encounters %end in macros file, it stops processing that file... Which is wrong
--
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/401
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180225/2000022c/attachment.html>
More information about the Rpm-maint
mailing list