Mercurial > wow > ouroloot
comparison core.lua @ 29:7d2742727869
Fix typo, update tooltip comment in help file.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Mon, 10 Oct 2011 20:49:07 +0000 |
| parents | a7376e6de73c |
| children | 47949f8eb783 |
comparison
equal
deleted
inserted
replaced
| 28:a7376e6de73c | 29:7d2742727869 |
|---|---|
| 183 local makedate, create_new_cache, _init | 183 local makedate, create_new_cache, _init |
| 184 | 184 |
| 185 -- Try to extract numbers from the .toc "Version" and munge them into an | 185 -- Try to extract numbers from the .toc "Version" and munge them into an |
| 186 -- integral form for comparison. The result doesn't need to be meaningful as | 186 -- integral form for comparison. The result doesn't need to be meaningful as |
| 187 -- long as we can reliably feed two of them to "<" and get useful results. | 187 -- long as we can reliably feed two of them to "<" and get useful results. |
| 188 -- | |
| 189 -- This makes/reinforces an assumption that revision_large of release packages | |
| 190 -- (e.g., 2016001) will always be higher than those of development packages | |
| 191 -- (e.g., 87), due to the tagging system versus subversion file revs. This | |
| 192 -- is good, as local dev code will never trigger a false positive update | |
| 193 -- warning for other users. | |
| 188 do | 194 do |
| 189 local r = 0 | 195 local r = 0 |
| 190 for d in addon.revision:gmatch("%d+") do | 196 for d in addon.revision:gmatch("%d+") do |
| 191 r = 1000*r + d | 197 r = 1000*r + d |
| 192 end | 198 end |
| 1057 | 1063 |
| 1058 else | 1064 else |
| 1059 self.dprint('comm', "ours is older, yammering") | 1065 self.dprint('comm', "ours is older, yammering") |
| 1060 if newer_warning then | 1066 if newer_warning then |
| 1061 self:Print(newer_warning, | 1067 self:Print(newer_warning, |
| 1062 self.format_hypertext('popupurl',"click here",ITEM_QUALITY_UNCOMMON) | 1068 self.format_hypertext('popupurl',"click here",ITEM_QUALITY_UNCOMMON), |
| 1063 self.format_hypertext('doping',"click here",ITEM_QUALITY_UNCOMMON)) | 1069 self.format_hypertext('doping',"click here",ITEM_QUALITY_UNCOMMON)) |
| 1064 newer_warning = nil | 1070 newer_warning = nil |
| 1065 end | 1071 end |
| 1066 end | 1072 end |
| 1067 end | 1073 end |
