server
server copied to clipboard
Suppress STDERR while determining rpm package vendor and version in %prein scriptlet
trafficstars
%prein(MariaDB-server-11.4.3-1.el9.x86_64) scriptlet failed, exit status 1
The message is:
The current MariaDB server package is provided by a different vendor (warning: Signature not supported. Hash algorithm SHA1 not available. MariaDB Foundation).
The warning: Signature not supported. Hash algorithm SHA1 not available is taken from the STDERR.
# rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\n'
warning: Signature not supported. Hash algorithm SHA1 not available.
gpg-pubkey-73e3b907-6581b071
rpm package vendor and version should be grepped from STDIN only.