metadata.sh: don't create INSTALL/REMOVE scripts for subpkgs, for now.

--HG--
extra : convert_revision : 8026610f3ac2f4e4617142e6ce1370944b3dfac2
This commit is contained in:
Juan RP 2009-03-20 05:14:34 +01:00
parent e1425ea26c
commit 509b140eba

View File

@ -334,6 +334,10 @@ _EOF
$XBPS_REGPKGDB_CMD sanitize-plist $metadir/props.plist
chmod 644 $metadir/*
# Do not create INSTALL/REMOVE scripts for subpkgs.
if [ -n "$sourcepkg" -a "$pkgname" != "$sourcepkg" ]; then
return 0
fi
#
# Create the INSTALL/REMOVE scripts if package uses them
# or uses any available trigger.