• 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
Re: Install check logic failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Install check logic failing


  • Subject: Re: Install check logic failing
  • From: Taylor Armstrong <email@hidden>
  • Date: Fri, 26 Jun 2009 11:12:58 -0400

Thanks Mario,

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 :(

Taylor

Mario Emmenlauer wrote:

Hi,

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"

The package fails on a 2x2.8 ghtz Intel box.

Question - am I simply looking at the logic backwards? The "true", in

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




--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
W. Taylor Armstrong email@hidden
NOAA's National Ocean Service Domain Infrastructure Team
1305 East-West Highway Phone (301) 713-1156 Silver Spring, MD 20910 http://nos.noaa.gov
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


_______________________________________________
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


References: 
 >Install check logic failing (From: Taylor Armstrong <email@hidden>)
 >Re: Install check logic failing (From: Mario Emmenlauer <email@hidden>)

  • Prev by Date: Re: Install check logic failing
  • Next by Date: packagemaker and warnings
  • Previous by thread: Re: Install check logic failing
  • Next by thread: packagemaker and warnings
  • Index(es):
    • Date
    • Thread