rpm --qf / nonsense

Elan Ruusamäe glen at pld-linux.org
Thu Sep 18 20:48:20 CEST 2014


On 18.09.2014 20:46, Jeffrey Johnson wrote:
> Patch to check a lead-in of "@/" attached.
"@"-special is as lame as "/"-special to me,
why not just use the parameter as is if such file does not exist?
use formatfile only if the argument specifies regular file that exists.
fallbacking like the argument did not even exist is not correct 
behaviour. there was no error reported just silently doing something else.

as a workaround, i just split the command to two parts:
1. fetch rpm -q rpm --qf value
2. use value from 1 and do the path related things

http://git.pld-linux.org/?p=packages/rpmlint.git;a=commitdiff;h=07c5699d9caf0b1643d88624724c29988d960f5c

-- 
glen



More information about the pld-devel-en mailing list