diff --git a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh index a7e15d06db5..eb58b5821a5 100644 --- a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh +++ b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh @@ -351,9 +351,9 @@ hook() { msg_error "$pkgver: failed to write REMOVE metadata file!\n" if [ -s ${msg_install} ]; then - install -m644 ${msg_install} ${PKGDESTDIR} + install -m644 ${msg_install} ${PKGDESTDIR}/INSTALL.msg fi if [ -s ${msg_remove} ]; then - install -m644 ${msg_remove} ${PKGDESTDIR} + install -m644 ${msg_remove} ${PKGDESTDIR}/REMOVE.msg fi }