Author: michael
Date: Fri Feb 5 05:05:22 2010
New Revision: 8460
URL: http://svn.slimdevices.com/jive?rev=8460&view=rev
Log:
Bug: n/a
Description: make sure we're comparing apples with apples. Comparing string
with a number fails the applet installer.
Modified:
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerApplet.lua
Modified:
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerApplet.lua
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerApplet.lua?rev=8460&r1=8459&r2=8460&view=diff
==============================================================================
---
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerApplet.lua
(original)
+++
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/SetupAppletInstaller/SetupAppletInstallerApplet.lua
Fri Feb 5 05:05:22 2010
@@ -19,7 +19,7 @@
=cut
--]]
-local next, pairs, type, package, string, tostring, pcall = next, pairs, type,
package, string, tostring, pcall
+local next, pairs, type, package, string, tostring, tonumber, pcall = next,
pairs, type, package, string, tostring, tonumber, pcall
local oo = require("loop.simple")
local debug = require("jive.utils.debug")
@@ -159,8 +159,9 @@
-- use the response with the most entries
data, server = nil, nil
for _, response in pairs(self.responses) do
- if data == nil or data.count < response.data.count then
+ if data == nil or data.count < tonumber(response.data.count)
then
data = response.data
+ data.count = tonumber(data.count)
server = response.server
end
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins