xbps-src: always check if triggers are required.
This commit is contained in:
parent
7895080de4
commit
5acd6fca97
1 changed files with 6 additions and 8 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue