version comparisment fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sparkle |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Sparkle cannot properly select the latest uploaded upgrade version from our RSS published list of updates.
We are using internal SVN build numbers (so the version looks like - X.X.X.X (1.0.0.100), where the short version we specify as: 1.0.0 and the full as - 100.
I am attaching the version of the xml we are using (or available at: http://
The problem is that Sparkle is using the first build it finds in the XML. I tried to swap the places of the items in the list - no difference.
Then i dag into the source code and i reached this piece of code where it tries to find the valid version:
SUBasicUpdateDr
// Find the first update we can actually use.
NSEnumerator *updateEnumerator = [[ac items] objectEnumerator];
do {
item = [updateEnumerator nextObject];
} while (item && ![self hostSupportsIte
}
SUBasicUpdateDr
- (BOOL)hostSuppo
{
if ([ui minimumSystemVe
return [[SUStandardVer
}
Why is Sparkle first checking if there is a minimumSystemVe
The logic as it seems here is that it will iterate among all possible updates and it will select the first possible update - wheres - i believe it must separate ALL possible updates first - and then select the best one from them.
Right now because i am not specifying minimumSystemVe
Changed in sparkle: | |
status: | New → Won't Fix |