• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bug in system.run?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in system.run?


  • Subject: Bug in system.run?
  • From: Iceberg-Dev <email@hidden>
  • Date: Sun, 15 Mar 2009 18:57:27 +0100

Considering the following source:

var tReturnValue;

try
{
	tReturnValue=system.run("echo3","testEcho");
}
catch(e)
{
	system.log("exception raised");

	tReturnValue=undefined;
}
finally
{
	system.log(tReturnValue);

	if (tReturnValue==undefined)
	{
		system.log("function not found");
	}
	else
	{
		system.log("function found");
	}

	return true;
}

and the fact that echo3 is not part of the Resources folder of a distribution script, is it not a bug that Installer.app does this?

1. Why not: Report the script has not been found

Mar 15 18:32:07 Selene : Error while running task /Users/stephane/ test10/build/test10.mpkg/Contents/Resources/echo3 launch path not accessible

2. Problem: Does not raise an exception

3. problem: Return a value that is different from "undefined".

Mar 15 18:32:07 Selene : JS: -1517380040
Mar 15 18:32:07 Selene : JS: function found



allow-external-scripts is of course set to true


_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Is PackageMaker killing the OS during the build process?
  • Next by Date: Codesinging and timestamping
  • Previous by thread: Is PackageMaker killing the OS during the build process?
  • Next by thread: Codesinging and timestamping
  • Index(es):
    • Date
    • Thread