server icon indicating copy to clipboard operation
server copied to clipboard

Suppress STDERR while determining rpm package vendor and version in %prein scriptlet

Open yuravk opened this issue 1 year ago • 1 comments
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.

yuravk avatar Aug 16 '24 09:08 yuravk

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 16 '24 09:08 CLAassistant