diff --git a/shutils/metadata.sh b/shutils/metadata.sh index 092ff9d480d..aa0f9e7b6cb 100644 --- a/shutils/metadata.sh +++ b/shutils/metadata.sh @@ -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.