Hello community, here is the log from the commit of package ghc-http-client for openSUSE:Factory checked in at 2016-10-22 13:20:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-http-client (Old) and /work/SRC/openSUSE:Factory/.ghc-http-client.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-http-client" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-http-client/ghc-http-client.changes 2016-07-21 08:04:49.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-http-client.new/ghc-http-client.changes 2016-10-22 13:20:20.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Sep 15 07:01:48 UTC 2016 - [email protected] + +- Update to version 0.4.31.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- Old: ---- http-client-0.4.31.tar.gz New: ---- http-client-0.4.31.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-http-client.spec ++++++ --- /var/tmp/diff_new_pack.YnPQQ3/_old 2016-10-22 13:20:21.000000000 +0200 +++ /var/tmp/diff_new_pack.YnPQQ3/_new 2016-10-22 13:20:21.000000000 +0200 @@ -19,15 +19,14 @@ %global pkg_name http-client %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.4.31 +Version: 0.4.31.1 Release: 0 Summary: An HTTP client engine, intended as a base layer for more user-friendly packages License: MIT -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-base64-bytestring-devel BuildRequires: ghc-blaze-builder-devel @@ -57,7 +56,6 @@ BuildRequires: ghc-monad-control-devel BuildRequires: ghc-zlib-devel %endif -# End cabal-rpm deps %description Hackage documentation generation is not reliable. For up to date documentation, @@ -77,20 +75,14 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++++++ http-client-0.4.31.tar.gz -> http-client-0.4.31.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/http-client-0.4.31/ChangeLog.md new/http-client-0.4.31.1/ChangeLog.md --- old/http-client-0.4.31/ChangeLog.md 2016-07-04 07:46:38.000000000 +0200 +++ new/http-client-0.4.31.1/ChangeLog.md 2016-09-02 13:53:36.000000000 +0200 @@ -1,3 +1,8 @@ +## 0.4.31.1 + +* The closeConnection method for tls connections should not be called multiple + times [#225](https://github.com/snoyberg/http-client/issues/225) + ## 0.4.31 * Added length validation for RequestBodyStream [#205](https://github.com/snoyberg/http-client/pull/205) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/http-client-0.4.31/Network/HTTP/Client/Connection.hs new/http-client-0.4.31.1/Network/HTTP/Client/Connection.hs --- old/http-client-0.4.31/Network/HTTP/Client/Connection.hs 2016-07-04 07:46:38.000000000 +0200 +++ new/http-client-0.4.31.1/Network/HTTP/Client/Connection.hs 2016-09-02 13:53:36.000000000 +0200 @@ -90,7 +90,12 @@ -- already closed connection. closedVar <- newIORef False - _ <- mkWeakIORef istack c + let close = do + closed <- atomicModifyIORef closedVar (\closed -> (True, closed)) + unless closed $ + c + + _ <- mkWeakIORef istack close return $! Connection { connectionRead = do closed <- readIORef closedVar @@ -113,11 +118,7 @@ throwIO ConnectionClosed w x - , connectionClose = do - closed <- readIORef closedVar - unless closed $ - c - writeIORef closedVar True + , connectionClose = close } socketConnection :: Socket -> Int -> IO Connection diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/http-client-0.4.31/http-client.cabal new/http-client-0.4.31.1/http-client.cabal --- old/http-client-0.4.31/http-client.cabal 2016-07-04 07:46:38.000000000 +0200 +++ new/http-client-0.4.31.1/http-client.cabal 2016-09-02 13:53:36.000000000 +0200 @@ -1,5 +1,5 @@ name: http-client -version: 0.4.31 +version: 0.4.31.1 synopsis: An HTTP client engine, intended as a base layer for more user-friendly packages. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/http-client>. homepage: https://github.com/snoyberg/http-client
