Author: titmuss
Date: Mon Jan  5 04:27:45 2009
New Revision: 3673

URL: http://svn.slimdevices.com?rev=3673&root=Jive&view=rev
Log:
Bug: N/A
Description:
Bug fix for UBI upgrades.


Modified:
    
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupFirmwareUpgrade/UpgradeUBI.lua

Modified: 
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupFirmwareUpgrade/UpgradeUBI.lua
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupFirmwareUpgrade/UpgradeUBI.lua?rev=3673&root=Jive&r1=3672&r2=3673&view=diff
==============================================================================
--- 
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupFirmwareUpgrade/UpgradeUBI.lua
 (original)
+++ 
7.4/trunk/squeezeplay/src/squeezeplay_squeezeos/share/applets/SetupFirmwareUpgrade/UpgradeUBI.lua
 Mon Jan  5 04:27:45 2009
@@ -1,6 +1,6 @@
 
 
-local assert, error, pairs, type, pcall = assert, error, pairs, type, pcall
+local assert, error, pairs, pcall, tonumber, type = assert, error, pairs, 
pcall, tonumber, type
 
 local oo          = require("loop.base")
 local io          = require("io")
@@ -118,9 +118,9 @@
                end
 
                if string.match(line, "Hardware") then
-                       self._platform = string.lower(string.match(line, 
".+:%s+([^%s]+)"))
+                       self._platform = string.lower(string.match(line, 
".+:%s+(.+)"))
                elseif string.match(line, "Revision") then
-                       self._revision = tonumber(string.match(line, 
".+:%s+([^%s]+)"))
+                       self._revision = tonumber(string.match(line, 
".+:%s+(.+)"))
                end
 
        end
@@ -131,11 +131,11 @@
 
 
 function verifyPlatformRevision(self)
-       for platform, revision in string.gmatch(self._boardVersion, 
"(%a+):(%d+)") do
+       for platform, revision in string.gmatch(self._boardVersion, 
"(%w+):(%d+)") do
                platform = string.lower(platform)
                revision = tonumber(revision)
 
-               if string.match(platform, self._platform)
+               if string.find(self._platform, platform)
                        and revision == self._revision then
                                return true
                end

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to