site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=efXhBzXVX2ih7VIJSogIdfZZA+rWdkEPDl5lSuAUn3I=; b=dQrX48TB2lazeztM6b+5iJ0p4j33qIBHrE3UDteCMg4Md50+gLmbP6X4HalvhdCMev r922LFLDutZs9jfnQN56emOzyeXaR2kWGNT0r+zGBOhCs7JZYlNomj0pRP/3UMbfcol/ 3PYvgCOZYDqkxRtVhh1odoKJG+0HqoTOGmDbM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=FL+n/6JUyRrZNLbnz99GJ9TkuozjmUezUty9Dmq7HohFqqw4RfuGRbtwv/ds+OJmVO YsW52QF5ZEAt591OoT5UgwVD1A0bQT1G9Obn5pJ92HSnTMOkT1+B1HBeEsbegVbMwRKf eh7SLecbowiEhjUC+mKcCshvltU+JjM01v6S4= The easiest way (if not the most proper way) would be to set a flag file (`touch /path/to/file`) in your postinstall of component_1, and look for it in component_2's preinstall (`if (-e /path/to/file) { }`). Or check whatever value/service/file/etc you're doing in component_1's postinstall, instead of creating a flag file. -nick -- Nick Peelman nick@peelman.us On Mon, Mar 8, 2010 at 10:56 AM, sakshi <heysakshi@gmail.com> wrote:
Hi, I am creating a distribution package that needs to be installed on both Leopard and Snow Leopard. Is there a difference in the sequence in which the preinstall and postinstall scripts get invoked on these platforms? My package contains two component packages and I would like the second component to not get installed if the postinstall of the first one fails. There seems to be a difference in behavior on Leopard vs. Snow Leopard. On Leopard, if postinstall of component_1 fails (script returns -1), then component_2 does not get installed. However on 10.6, component_2 gets installed even if postinstall of component_1 fails. Thanks, Sakshi _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/nick%40peelman.us
This email sent to nick@peelman.us
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com