PDA

View Full Version : New Version?



Neil Cameron
2008-03-15, 03:04
The bottom pane of the SqueezeCenter page tells me there is a new version;
but when I click the link it offers me 7.0 as the latest official release -
which is what I already have. Am I missing something?

Neil

hypatia
2008-03-15, 05:17
Working through the code (line numbers are against the Debian SqueezeCenter 7.0 package) the relevant bit of the HTML in HTML/Default/index.html is:



202 [% IF newVersion %]
203 <span id="newVersion">
204 <img src="[% webroot %]html/images/btn_info.gif"/> [% newVersion %]
205 </span>
206 [% END %]


It turns out, checking through the code, that this ends up being set in squeezecenter-server:



908 my $url = "http://"
909 . Slim::Networking::SqueezeNetwork->get_server("update")
910 . "/update/?version=$VERSION&lang=" . Slim::Utils::Strings::getLanguage();
911 my $http = Slim::Networking::SimpleAsyncHTTP->new(\&checkVersionCB, \&checkVersionError);
912
913 # will call checkVersionCB when complete
914 $http->get($url);
915

920 # called when check version request is complete
921 sub checkVersionCB {
922 my $http = shift;
923
924 # store result in global variable, to be displayed by browser
925 if ($http->{code} =~ /^2\d\d/) {
926 $::newVersion = $http->content();
927 chomp($::newVersion);


It eventually turns out that it is going to http://update.squeezenetwork.com/update/?VERSION=7.0&lang=en (at least for me) and that URL is producing the string we both see. So there is either a bug in whatever produces that page, or someone has jumped the gun on an impending release.