diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-28 10:59:56 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-28 11:31:14 -0300 |
commit | 300a07797e53b1e9a9f61625c47796297b6a3453 (patch) | |
tree | bc5af7f272cf95d684050f5fbacc24c3a975f982 /nonprism/banshee/sqlite_fix.patch | |
parent | 32197f12bc93bb86968a9a154b9fbe2d37204d34 (diff) |
banshee-2.6.2-8.nonprism1: updating revision
* fix FS#47854 -> https://bugs.archlinux.org/task/47854
* remove Ubuntu One Music store and Amazon MP3 store support
Diffstat (limited to 'nonprism/banshee/sqlite_fix.patch')
-rw-r--r-- | nonprism/banshee/sqlite_fix.patch | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nonprism/banshee/sqlite_fix.patch b/nonprism/banshee/sqlite_fix.patch index 880f6ed9f..7dfa53817 100644 --- a/nonprism/banshee/sqlite_fix.patch +++ b/nonprism/banshee/sqlite_fix.patch @@ -124,7 +124,7 @@ diff --git a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs b index e9bbbf5..3ae0728 100644 --- a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs +++ b/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs -@@ -52,6 +52,16 @@ namespace Banshee.Database +@@ -52,6 +52,20 @@ namespace Banshee.Database get { return configuration; } } @@ -132,7 +132,11 @@ index e9bbbf5..3ae0728 100644 + public bool LikelihoodSupport { + get { + if (!likelihood_support.HasValue) { -+ likelihood_support = Query<bool> ("SELECT sqlite_version () >= '3.8.1'"); ++ // emulate the SQLITE_VERSION_NUMBER macro ++ string[] v = Query<string> ("SELECT sqlite_version ()").Split ('.'); ++ likelihood_support = (Int32.Parse (v[0]) * 1000000 + ++ Int32.Parse (v[1]) * 1000 + ++ Int32.Parse (v[2])) >= 3008001; + } + return likelihood_support.Value; + } @@ -140,7 +144,4 @@ index e9bbbf5..3ae0728 100644 + public BansheeDbConnection () : this (DatabaseFile) { - validate_schema = ApplicationContext.CommandLine.Contains ("validate-db-schema"); --- -cgit v0.10.1 |