shutils/metadata_scripts: do not create empty INSTALL/REMOVE scripts.

--HG--
extra : convert_revision : 149185cfd371a88802cc4e05c06fbe006b7cc006
This commit is contained in:
Juan RP 2010-01-16 06:13:12 +01:00
parent 07833e3e63
commit eeeebb5915

View file

@ -239,6 +239,7 @@ _EOF
case "$action" in
install)
unset found
if [ -n "${sourcepkg}" -a "${sourcepkg}" != "${pkgname}" ]; then
install_file=$XBPS_SRCPKGDIR/$pkgname/$pkgname.INSTALL
else
@ -256,6 +257,7 @@ _EOF
mv $tmpf ${DESTDIR}/INSTALL && chmod 755 ${DESTDIR}/INSTALL
;;
remove)
unset found
if [ -n "${sourcepkg}" -a "${sourcepkg}" != "${pkgname}" ]; then
remove_file=$XBPS_SRCPKGDIR/$pkgname/$pkgname.REMOVE
else