[packages/rpm/rpm.org] - unlock rpmdb in case we're rebuilding db from rpm.org to rpm.org, post transaction scriptlet sho

Jan Rękorajski baggins at pld-linux.org
Tue Jan 12 08:40:22 CET 2021


On Mon, 11 Jan 2021, Elan Ruusamäe wrote:

> 
> On 09.01.2021 11:51, baggins wrote:
> > +	# Unlock database for rebuild, safe since this is posttrans
> > +	%{__rm} -rf/var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || :
> 
> it's likely a file, so -r is superfluous

Yeah, removed.
> 
> and why hide unlink errors? I prefer to see "permission denied" or 
> similar errors if rm failed. easier to diagnose issues.

All you could see is "no such file or directory", which is just noise.
This script was like this for years.

-- 
Jan Rękorajski                    | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/


More information about the pld-devel-en mailing list