The macro expansion of an --eval need not return anything (eg, it could be a 
lua script only run for its side effects). That --eval then prints an empty 
line. A silly example:

`$ rpm --eval '%{lua: a = 1}' --eval '%{lua: print( "Hi!" 
)}' --eval '%{lua: b = 2}' 

Hi!

`
This trivial commit skips printing if the macro expansion is an empty string. 
Tested lightly on rpm-4.20.1 (Fedora 42) and forward-ported to master.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Don't print empty return of --eval macro expansion

-- File Changes --

    M lib/poptALL.cc (4)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3804
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to