Red Hat Bugzilla – Bug 977156
Code to return
Last modified: 2013-06-25 16:46:50 EDT
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.
ok no problem if that is intentional i can understand why you done this.