Re: Install check logic failing
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Thunderbird 2.0.0.21 (Windows/20090302) Thanks Mario, Taylor Hi, The package fails on a 2x2.8 ghtz Intel box. Well, I would say it equals: if ((max cpu speed <= 500) == true) then Pass; else exit with error; Of course, testing if "(max cpu speed <= 500) equals true" is the same as just testing if (max cpu speed <= 500). So your test does: if (max cpu speed <= 500) then Pass; else exit with error; which is the opposite of what you want. If you correct it, rather then testing for false I would suggest testing "if (max cpu speed > 500)", in case that test exists. It would be a lot more readable:) Cheers, and happy coding, Mario -- _______________________________________________ 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... As soon as I actually read the statement out loud, it made sense. Too little sleep, and a "double-negative" in the logic. I've changed it to "Greater than or equal" and set it to build again, we'll see how long it takes (for some reason, it has been SLOW on my G5.... 7+ hours to build an Office 2008 package :( Mario Emmenlauer wrote: Taylor Armstrong wrote: Trying to use PackageMaker for the 1st time (I normally just use install-ease or Iceberg since most of my packages are fairly simple). I added a install check that clearly states "Maximum CPU Frequency (Hz) is less than or equal to 500". It is required, and "Pass if" is set to "true" Question - am I simply looking at the logic backwards? The "true", in ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ W. Taylor Armstrong Taylor.Armstrong@noaa.gov NOAA's National Ocean Service Domain Infrastructure Team 1305 East-West Highway Phone (301) 713-1156 Silver Spring, MD 20910 http://nos.noaa.gov ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email sent to site_archiver@lists.apple.com
participants (1)
-
Taylor Armstrong