Restore trigger freshness check

This reverts commit db19323db2.
Paths are adjusted. The condition is inverted to actually check the
right thing.

The test is moved before build to make it easier to see. Meson does
the .in substitutions immediately after configuration, so this should
be easier to see.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-02-23 09:23:10 +01:00
parent 9a7ed05bbc
commit e0b3ead233
1 changed files with 8 additions and 0 deletions

View File

@ -467,6 +467,14 @@ CONFIGURE_OPTS=(
%endif
%meson "${CONFIGURE_OPTS[@]}"
new_triggers=%{_vpath_builddir}/src/rpm/triggers.systemd.sh
if ! diff -u %{SOURCE1} ${new_triggers}; then
echo -e "\n\n\nWARNING: triggers.systemd in Source1 is different!"
echo -e " cp $PWD/${new_triggers} %{SOURCE1}\n\n\n"
sleep 5
fi
%meson_build
%install