[banshee] [tests] Fix build with --disable-tests (bgo#613719)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [tests] Fix build with --disable-tests (bgo#613719)
- Date: Tue, 23 Mar 2010 18:43:29 +0000 (UTC)
commit a620a7fad74d5093420eb7edda9a8a5b52ed0e83
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Mar 23 11:42:52 2010 -0700
[tests] Fix build with --disable-tests (bgo#613719)
.../Banshee.Database/SortKeyUpdater.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs b/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs
index cebd0ca..8a6d7e2 100644
--- a/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs
+++ b/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs
@@ -35,7 +35,9 @@ namespace Banshee.Database
{
internal class SortKeyUpdater
{
+#if ENABLE_TESTS
internal static bool Disable;
+#endif
public static void Update ()
{
@@ -53,9 +55,11 @@ namespace Banshee.Database
protected static void ForceUpdate (string new_locale)
{
+#if ENABLE_TESTS
if (Disable) {
return;
}
+#endif
ServiceManager.DbConnection.Execute (@"
UPDATE CoreArtists SET
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]