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
1 changed files with 2 additions and 0 deletions

View File

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