[devel] [PATCH for rpm v2] Add triggers circumvension for packagekit offline update
Aleksei Nikiforov
darktemplar на altlinux.org
Чт Окт 31 16:24:59 MSK 2019
Joint change with Oleg Solovyov (mcpain@)
---
alt/rpm.spec | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/alt/rpm.spec b/alt/rpm.spec
index 6217493b7..a38367ffd 100644
--- a/alt/rpm.spec
+++ b/alt/rpm.spec
@@ -385,6 +385,10 @@ 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
+ exit 0
+fi
+
#chgrp %%name %%_localstatedir/%%name/[A-Z]*
[ -n "$DURING_INSTALL" -o -n "$BTE_INSTALL" ] ||
%_rpmlibdir/pdeath_execute $PPID %_rpmlibdir/postupdate
--
2.21.0
Подробная информация о списке рассылки Devel