From 509b140ebabe2f70bc369c7f8f77cdaef76f33a2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 20 Mar 2009 05:14:34 +0100 Subject: [PATCH] metadata.sh: don't create INSTALL/REMOVE scripts for subpkgs, for now. --HG-- extra : convert_revision : 8026610f3ac2f4e4617142e6ce1370944b3dfac2 --- shutils/metadata.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shutils/metadata.sh b/shutils/metadata.sh index 092ff9d480..aa0f9e7b6c 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.