hooks/xbps-metadata: only add systemd-service trigger if the buildopt is set.

This commit is contained in:
Juan RP 2015-04-30 11:15:02 +02:00
parent ea01ed96fb
commit a56b465f1e

View file

@ -119,6 +119,7 @@ _EOF
# #
# Handle systemd services. # Handle systemd services.
# #
if [ -n "$build_option_systemd" ]; then
if [ -n "${systemd_services}" ]; then if [ -n "${systemd_services}" ]; then
_add_trigger systemd-service _add_trigger systemd-service
echo "export systemd_services=\"${systemd_services}\"" >> $tmpf echo "export systemd_services=\"${systemd_services}\"" >> $tmpf
@ -137,6 +138,7 @@ _EOF
_add_trigger systemd-service _add_trigger systemd-service
echo "export systemd_modules=\"${_mods}\"" >> $tmpf echo "export systemd_modules=\"${_mods}\"" >> $tmpf
fi fi
fi
# #
# Handle GNU Info files. # Handle GNU Info files.
# #