[Rpm-maint] [rpm-software-management/rpm] "load" does not work with RPM 4.16.90 (#1669)

Jun Aruga notifications at github.com
Thu May 6 15:25:33 UTC 2021


> Sorry could you tell me what's wrong in the following code?

I was able to implement the own exists macro like this. I expect `rpmlint` skips the load. But `rpmlint` still checks the load macro printing parsing error. Now what we need to fix is rpmlint.

```
%global exists_file %{lua: posix.access(rpm.expand("%{1}"))}

%if %exists_file "%{SOURCE4}" 
%{echo:loading %{SOURCE4}} 
%{load:%{SOURCE4}}
%endif
```


-- 
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/1669#issuecomment-833612235
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210506/ba605a09/attachment.html>


More information about the Rpm-maint mailing list