[devel] [PATCH for rpm] Add triggers circumvension for packagekit offline update
Dmitry V. Levin
ldv на altlinux.org
Чт Окт 31 15:59:57 MSK 2019
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
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : signature.asc
Тип : application/pgp-signature
Размер : 801 байтов
Описание: отсутствует
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20191031/69de373a/attachment-0001.bin>
Подробная информация о списке рассылки Devel