shutils/metadata: return if required stuff fails.

--HG--
extra : convert_revision : c8225a2a9ace45bbc7eed5b309e26336ce94f9ae
This commit is contained in:
Juan RP 2010-04-22 12:06:16 +02:00
parent 1f05445a24
commit 1874cbadda

View file

@ -370,8 +370,8 @@ _EOF
mv -f $TMPFPLIST ${DESTDIR}/files.plist
mv -f $TMPFPROPS ${DESTDIR}/props.plist
$XBPS_PKGDB_CMD sanitize-plist ${DESTDIR}/files.plist || exit 1
$XBPS_PKGDB_CMD sanitize-plist ${DESTDIR}/props.plist || exit 1
$XBPS_PKGDB_CMD sanitize-plist ${DESTDIR}/files.plist || return 1
$XBPS_PKGDB_CMD sanitize-plist ${DESTDIR}/props.plist || return 1
chmod 644 ${DESTDIR}/files.plist ${DESTDIR}/props.plist
[ -f $metadir/flist ] && chmod 644 $metadir/flist
@ -380,6 +380,6 @@ _EOF
# or uses any available trigger.
#
. ${XBPS_SHUTILSDIR}/metadata_scripts.sh
xbps_write_metadata_scripts_pkg install
xbps_write_metadata_scripts_pkg remove
xbps_write_metadata_scripts_pkg install || return $?
xbps_write_metadata_scripts_pkg remove || return $?
}