shutils/metadata_scripts: do not create empty INSTALL/REMOVE scripts.
--HG-- extra : convert_revision : 149185cfd371a88802cc4e05c06fbe006b7cc006
This commit is contained in:
parent
07833e3e63
commit
eeeebb5915
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue