[Slim-Checkins] r33708 - in /7.7/trunk/server: Changelog7.html Slim/Utils/OS/SqueezeOS.pm

[email protected]
Newsgroups gmane.music.equipment.slimdevices.cvs
Message-ID <[email protected]>
Author: mherger
Date: Wed Nov 16 03:18:02 2011
New Revision: 33708

URL: http://svn.slimdevices.com/slim?rev=33708&view=rev
Log:
Fixed Bug: 17764
Description: when changing the librarycachedir value we need to reset dbsource in order for the DB handler to re-initialize the value. Otherwise it would try to use the old value, potentially pointing to a no longer available storage device.

Modified:
    7.7/trunk/server/Changelog7.html
    7.7/trunk/server/Slim/Utils/OS/SqueezeOS.pm

Modified: 7.7/trunk/server/Changelog7.html
URL: http://svn.slimdevices.com/slim/7.7/trunk/server/Changelog7.html?rev=33708&r1=33707&r2=33708&view=diff
==============================================================================
--- 7.7/trunk/server/Changelog7.html (original)
+++ 7.7/trunk/server/Changelog7.html Wed Nov 16 03:18:02 2011
@@ -20,6 +20,7 @@
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=17739">#17739</a> - require Windows XP or more recent for the installation to proceed</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=17752">#17752</a> - OSX PrefPane is missing localizations</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=17762">#17762</a> - Control Panel Doesn't Open after Entering Credentials</li>
+		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=17764">#17764</a> - Embedded LMS fails to switch between sources</li>
 	</ul>
 	<br />
 </ul>

Modified: 7.7/trunk/server/Slim/Utils/OS/SqueezeOS.pm
URL: http://svn.slimdevices.com/slim/7.7/trunk/server/Slim/Utils/OS/SqueezeOS.pm?rev=33708&r1=33707&r2=33708&view=diff
==============================================================================
--- 7.7/trunk/server/Slim/Utils/OS/SqueezeOS.pm (original)
+++ 7.7/trunk/server/Slim/Utils/OS/SqueezeOS.pm Wed Nov 16 03:18:02 2011
@@ -351,6 +351,9 @@
 		
 		$prefs->set( mediadirs       => [ $path ] );
 		$prefs->set( librarycachedir => "$path/.Squeezebox/cache" );
+
+		# reset dbsource, it needs to be re-configured
+		$prefs->set( 'dbsource', '' );
 		
 		# Create a playlist dir if necessary
 		my $playlistdir = "$path/Playlists";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.