[devel] [PATCH for rpm] Add triggers circumvension for packagekit offline update
Aleksei Nikiforov
darktemplar на altlinux.org
Чт Окт 31 14:58:08 MSK 2019
Joint change with Oleg Solovyov (mcpain@)
---
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
:
%triggerpostun -- rpm <= 4.0.4
--
2.21.0
Подробная информация о списке рассылки Devel