[Sparkle] Sparkle Not Finding Update with Different Style Version Number
Justin Bur
jbur at druide.com
Fri Mar 16 12:45:03 PST 2007
It's a bug in Sparkle. The comparison of the alphabetic component of
a standard version string is reversed.
SUUtilities.m, in SUStandardVersionComparison(), line 144 (rev. 928,
head of the svn repository; a few lines earlier in Sparkle 1.1)
should read
NSComparisonResult result = [partB compare:partA];
instead of [partA compare:partB].
As an aside, in the Apple standard version scheme, the stage after
"b" is "fc", not "rc". In Apple terminology, you have "final
candidates" rather than "release candidates". See <http://
developer.apple.com/technotes/tn/tn1132.html>. But this has no
bearing on the problem in Sparkle.
justin
On Mar 16, 2007 at 5:54, Simone Manganelli wrote:
> I'm having a weird problem with Sparkle. I've made an appcast that's
> been working perfectly up until the latest release of my app. I've
> been using the convention "1.0b1", "1.0b2", "1.0b3", etc., all the
> way up to "1.0b10", and each previous beta that has Sparkle installed
> has correctly found the newest updates.
>
> However, with the latest version, I changed the version to "1.0rc1",
> and now all the previous betas refuse to find the latest update to my
> app. They all say that they have the latest version, even though,
> from what I understand, they should simply retrieve the latest entry
> in the appcast, compare the version numbers, and if they're
> different, offer to install the update from the latest entry in the
> appcast. This doesn't seem to be working.
>
> For what it's worth, I'm using the sparkle:version extension, so, for
> example, my enclosure tags look like:
>
> enclosure sparkle:version="1.0rc1" url="http://homepage.mac.com/simx/
> mugs/tunetagger1.0rc1.dmg" length="12345" type="application/octet-
> stream"/
>
> (surrounded by angle brackets, of course.)
>
> Curiously, if I change the version number inside the version tag to
> "1.0b11", all the betas immediately see the new update and will
> happily install it. Why does the version number matter? I thought
> the version tag was there precisely to eliminate these kinds of
> situations where the update would break based on a different format
> of the version number?
>
> Am I doing something wrong?
>
> -- Simone Manganelli
> Ellipsis Productions
More information about the Sparkle
mailing list