[arch-commits] Commit in banshee/trunk (PKGBUILD sqlite_fix.patch)

Daniel Isenmann daniel at archlinux.org
Wed Jan 27 21:15:11 UTC 2016


    Date: Wednesday, January 27, 2016 @ 22:15:11
  Author: daniel
Revision: 258659

upgpkg: banshee 2.6.2-8

Fix for FS#47854

Modified:
  banshee/trunk/PKGBUILD
  banshee/trunk/sqlite_fix.patch

------------------+
 PKGBUILD         |    4 ++--
 sqlite_fix.patch |   11 ++++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-27 20:55:02 UTC (rev 258658)
+++ PKGBUILD	2016-01-27 21:15:11 UTC (rev 258659)
@@ -4,7 +4,7 @@
 
 pkgname=banshee
 pkgver=2.6.2
-pkgrel=7
+pkgrel=8
 pkgdesc="Music management and playback for GNOME"
 arch=('i686' 'x86_64')
 url="http://banshee.fm/"
@@ -28,7 +28,7 @@
          '0bf7ee4241b12538779c9ecc401d142a'
          'f87534f54029794bd7be2a123ab01300'
          'd092827720e4a11549587eb3131123ae'
-         '72ca131b950d58998fd9286fad722ed7'
+         '2677e6edc2e0d2ce8994adc852dda362'
          '3b28f10e167c0aae27157dcc3b828b67'
          '2c4436f7aba58fdd0c5a38d709d73e5c')
 

Modified: sqlite_fix.patch
===================================================================
--- sqlite_fix.patch	2016-01-27 20:55:02 UTC (rev 258658)
+++ sqlite_fix.patch	2016-01-27 21:15:11 UTC (rev 258659)
@@ -124,7 +124,7 @@
 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 @@
 +        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 @@
 +
          public BansheeDbConnection () : this (DatabaseFile)
          {
-             validate_schema = ApplicationContext.CommandLine.Contains ("validate-db-schema");
--- 
-cgit v0.10.1
 



More information about the arch-commits mailing list