On Thu, Oct 31, 2019 at 02:58:08PM +0300, Aleksei Nikiforov wrote: > Joint change with Oleg Solovyov (mcpain@) Thanks. It's not clear from the commit message why one might need to disable rpmdb --rebuilddb after rpm update. Could you elaborate, please? > --- > alt/rpm.spec | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/alt/rpm.spec b/alt/rpm.spec > index 6217493b7..d93e701b1 100644 > --- a/alt/rpm.spec > +++ b/alt/rpm.spec > @@ -385,6 +385,7 @@ ls -A tests/rpmtests.dir 2>/dev/null ||: > #[ ! -L %%_rpmlibdir/noarch-alt-%%_target_os ] || rm -f %%_rpmlibdir/noarch-alt-%%_target_os ||: > > %post > +if [ ! -f %_localstatedir/PackageKit/disable-rpm-triggers ]; then > #chgrp %%name %%_localstatedir/%%name/[A-Z]* > [ -n "$DURING_INSTALL" -o -n "$BTE_INSTALL" ] || > %_rpmlibdir/pdeath_execute $PPID %_rpmlibdir/postupdate > @@ -393,6 +394,7 @@ ls -A tests/rpmtests.dir 2>/dev/null ||: > if set /var/cache/apt/*.bin && [ -f "$1" ]; then > %_rpmlibdir/pdeath_execute $PPID rm -f "$@" > fi > +fi > : If this change is needed, it should rather look this way: if [ -f %_localstatedir/PackageKit/disable-rpm-triggers ]; then exit 0 fi -- ldv