xbps-src: always check if triggers are required.

This commit is contained in:
Juan RP 2011-10-29 12:33:32 +02:00
parent 7895080de4
commit 5acd6fca97

View file

@ -442,13 +442,11 @@ _EOF
meta_install=${XBPS_SRCPKGDIR}/${pkgname}/INSTALL
meta_remove=${XBPS_SRCPKGDIR}/${pkgname}/REMOVE
fi
if [ -f "$meta_install" -o -n "$triggers" ]; then
xbps_write_metadata_scripts_pkg install ${meta_install} || \
msg_error "$pkgname: failed to write INSTALL metadata file!\n"
fi
if [ -f "$meta_remove" -o -n "$triggers" ]; then
xbps_write_metadata_scripts_pkg remove ${meta_remove} || \
msg_error "$pkgname: failed to write REMOVE metadata file!\n"
fi
msg_normal "$pkgver: successfully created package metadata.\n"
}