From 5acd6fca977e0449ad528902abf89c26a1fb7ef6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 29 Oct 2011 12:33:32 +0200 Subject: [PATCH] xbps-src: always check if triggers are required. --- xbps-src/shutils/metadata.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/xbps-src/shutils/metadata.sh b/xbps-src/shutils/metadata.sh index e20c77cf5eb..14150fa309c 100644 --- a/xbps-src/shutils/metadata.sh +++ b/xbps-src/shutils/metadata.sh @@ -442,13 +442,11 @@ _EOF meta_install=${XBPS_SRCPKGDIR}/${pkgname}/INSTALL meta_remove=${XBPS_SRCPKGDIR}/${pkgname}/REMOVE fi - if [ -f "$meta_install" -o -n "$triggers" ]; then - xbps_write_metadata_scripts_pkg install ${meta_install} || \ - msg_error "$pkgname: failed to write INSTALL metadata file!\n" - fi - if [ -f "$meta_remove" -o -n "$triggers" ]; then - xbps_write_metadata_scripts_pkg remove ${meta_remove} || \ - msg_error "$pkgname: failed to write REMOVE metadata file!\n" - fi + xbps_write_metadata_scripts_pkg install ${meta_install} || \ + msg_error "$pkgname: failed to write INSTALL metadata file!\n" + + xbps_write_metadata_scripts_pkg remove ${meta_remove} || \ + msg_error "$pkgname: failed to write REMOVE metadata file!\n" + msg_normal "$pkgver: successfully created package metadata.\n" }