From eeeebb5915ce450d0ec6b597e6574df8ee2066aa Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 16 Jan 2010 06:13:12 +0100 Subject: [PATCH] shutils/metadata_scripts: do not create empty INSTALL/REMOVE scripts. --HG-- extra : convert_revision : 149185cfd371a88802cc4e05c06fbe006b7cc006 --- xbps-src/shutils/metadata_scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbps-src/shutils/metadata_scripts.sh b/xbps-src/shutils/metadata_scripts.sh index 27bca7c5314..66429eafa3f 100644 --- a/xbps-src/shutils/metadata_scripts.sh +++ b/xbps-src/shutils/metadata_scripts.sh @@ -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