why rpmdiff return 1 when it found a diff ? The return code 1 is used for error. a diff is not an error this break my worklow as trap exit on error aka exit code 1
This is the standard way that diff behaves. To quote the diff documentation¹, "An exit status of 0 means no differences were found, 1 means some differences were found, and 2 means trouble." I don't think there is any bug in rpmdiff following the same pattern. ¹ https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff.html
ok no problem if that is intentional i can understand why you done this. Thanks