$ rpm -q --qf '%{VERSION}\n' --specfile teste.specNote the unknown tag rpm is complaining about "ðâ", which seems to be gargabage. It happens always when calling print more than once and can't be reproduced with "rpm --eval". Really weird.
error: line 8: Unknown tag: ðâ
error: query of specfile teste.spec failed, can't parse
$ cat teste.spec
%{lua: print("Name: foo") }
%{lua: print("Version: bar") }
Release: 1
Group: Foo/bar
License: GPL
Summary: summary
Buildroot: %_tmpdir/%name
My dirty workaround was to append all needed lines in a table and then dump all these lines with only one call of print().
Um comentário:
Sim, provavelmente por isso e
Postar um comentário