Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-yesod-persistent for 
openSUSE:Factory checked in at 2021-05-11 23:04:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-yesod-persistent (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-yesod-persistent.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-yesod-persistent"

Tue May 11 23:04:13 2021 rev:6 rq:892194 version:1.6.0.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-yesod-persistent/ghc-yesod-persistent.changes    
    2021-04-10 15:28:27.766455068 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-yesod-persistent.new.2988/ghc-yesod-persistent.changes
      2021-05-11 23:04:19.440912898 +0200
@@ -1,0 +2,8 @@
+Fri May  7 17:04:24 UTC 2021 - [email protected]
+
+- Update yesod-persistent to version 1.6.0.7.
+  ## 1.6.0.7
+
+  * Add support for persistent 2.13. 
[#1723](https://github.com/yesodweb/yesod/pull/1723)
+
+-------------------------------------------------------------------

Old:
----
  yesod-persistent-1.6.0.6.tar.gz

New:
----
  yesod-persistent-1.6.0.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-yesod-persistent.spec ++++++
--- /var/tmp/diff_new_pack.V3VZNH/_old  2021-05-11 23:04:19.872910928 +0200
+++ /var/tmp/diff_new_pack.V3VZNH/_new  2021-05-11 23:04:19.876910909 +0200
@@ -19,7 +19,7 @@
 %global pkg_name yesod-persistent
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        1.6.0.6
+Version:        1.6.0.7
 Release:        0
 Summary:        Some helpers for using Persistent from Yesod
 License:        MIT

++++++ yesod-persistent-1.6.0.6.tar.gz -> yesod-persistent-1.6.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-persistent-1.6.0.6/ChangeLog.md 
new/yesod-persistent-1.6.0.7/ChangeLog.md
--- old/yesod-persistent-1.6.0.6/ChangeLog.md   2021-03-30 21:13:36.000000000 
+0200
+++ new/yesod-persistent-1.6.0.7/ChangeLog.md   2021-05-07 13:10:52.000000000 
+0200
@@ -1,5 +1,9 @@
 # ChangeLog for yesod-persistent
 
+## 1.6.0.7
+
+* Add support for persistent 2.13. 
[#1723](https://github.com/yesodweb/yesod/pull/1723)
+
 ## 1.6.0.6
 
 * Add support for persistent 2.12
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-persistent-1.6.0.6/Yesod/Persist/Core.hs 
new/yesod-persistent-1.6.0.7/Yesod/Persist/Core.hs
--- old/yesod-persistent-1.6.0.6/Yesod/Persist/Core.hs  2021-03-30 
20:29:07.000000000 +0200
+++ new/yesod-persistent-1.6.0.7/Yesod/Persist/Core.hs  2021-05-07 
13:10:52.000000000 +0200
@@ -25,6 +25,7 @@
 import Database.Persist
 import Control.Monad.Trans.Reader (ReaderT, runReaderT)
 
+import Data.Foldable (toList)
 import Yesod.Core
 import Data.Conduit
 import Blaze.ByteString.Builder (Builder)
@@ -33,6 +34,9 @@
 import Control.Exception (throwIO)
 import Yesod.Core.Types (HandlerContents (HCError))
 import qualified Database.Persist.Sql as SQL
+#if MIN_VERSION_persistent(2,13,0)
+import qualified Database.Persist.SqlBackend.Internal as SQL
+#endif
 
 unSqlPersistT :: a -> a
 unSqlPersistT = id
@@ -197,7 +201,11 @@
     case conflict of
         Just unique ->
 #if MIN_VERSION_persistent(2, 12, 0)
-            badRequest' $ map (unFieldNameHS . fst) $ 
persistUniqueToFieldNames unique
+-- toList is called here because persistent-2.13 changed this
+-- to a nonempty list. for versions of persistent prior to 2.13, toList
+-- will be a no-op. for persistent-2.13, it'll convert the NonEmptyList to
+-- a List.
+            badRequest' $ map (unFieldNameHS . fst) $ toList $ 
persistUniqueToFieldNames unique
 #else
             badRequest' $ map (unHaskellName . fst) $ 
persistUniqueToFieldNames unique
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-persistent-1.6.0.6/yesod-persistent.cabal 
new/yesod-persistent-1.6.0.7/yesod-persistent.cabal
--- old/yesod-persistent-1.6.0.6/yesod-persistent.cabal 2021-03-30 
20:29:49.000000000 +0200
+++ new/yesod-persistent-1.6.0.7/yesod-persistent.cabal 2021-05-07 
13:10:52.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:   >= 1.10
 name:            yesod-persistent
-version:         1.6.0.6
+version:         1.6.0.7
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <[email protected]>

Reply via email to