[Rpm-maint] [rpm-software-management/rpm] transfiletriggerpostun doesn't work when rpms are removed. (Issue #2324)

xiacunshun notifications at github.com
Wed Dec 21 08:12:05 UTC 2022


Hi, is there any progress? 
I am now using transfiletriggerun + filetriggerpostun to work around.
`
%transfiletriggerun -- /usr/lib/systemd/system /etc/systemd/system
if test -d "/run/systemd/system"; then
    mkdir -p "%{_localstatedir}/lib/rpm-state/systemd"
    touch "%{_localstatedir}/lib/rpm-state/systemd/needs-reload"
fi

%filetriggerpostun -P 1000100 -- /usr/lib/systemd/system /etc/systemd/system
if test -f "%{_localstatedir}/lib/rpm-state/systemd/needs-reload"; then
    rm -rf "%{_localstatedir}/lib/rpm-state/systemd"
    /usr/lib/systemd/systemd-update-helper system-reload || :
fi
`

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2324#issuecomment-1360984781
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2324/1360984781 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20221221/7cb5e322/attachment.html>


More information about the Rpm-maint mailing list