Fix exit status of rpmbuild --version

Reported-by: Michael Bykov <m.bykov@gmail.com>
This commit is contained in:
Дмитрий Левин 2020-12-19 22:43:47 +00:00
parent b6d1778c72
commit fde66de855

View File

@ -597,7 +597,10 @@ int main(int argc, const char ** argv)
if (quiet)
rpmSetVerbosity(RPMMESS_QUIET);
if (showVersion) printVersion();
if (showVersion) {
printVersion();
exit(EXIT_SUCCESS);
}
if (arg < -1) {
fprintf(stderr, "%s: %s\n",