Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-http-client-restricted for 
openSUSE:Factory checked in at 2022-02-11 23:09:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-client-restricted (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-http-client-restricted.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-http-client-restricted"

Fri Feb 11 23:09:11 2022 rev:5 rq:953485 version:0.0.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-http-client-restricted/ghc-http-client-restricted.changes
    2021-01-20 18:26:26.627461830 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-http-client-restricted.new.1956/ghc-http-client-restricted.changes
  2022-02-11 23:11:05.611238208 +0100
@@ -1,0 +2,13 @@
+Wed Feb  9 15:25:35 UTC 2022 - Peter Simons <[email protected]>
+
+- Update http-client-restricted to version 0.0.5.
+  http-client-restricted (0.0.5) unstable; urgency=medium
+
+    * Deal with raw IPv6 addresses correctly, stripping square
+      brackets before passing on to name resolution.
+      (The same fix was made in http-client 0.7.11, which this depends on.)
+      Thanks, Robert Vollmert.
+
+   -- Joey Hess <[email protected]>  Wed, 09 Feb 2022 11:24:29 -0400
+
+-------------------------------------------------------------------

Old:
----
  http-client-restricted-0.0.4.tar.gz

New:
----
  http-client-restricted-0.0.5.tar.gz

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

Other differences:
------------------
++++++ ghc-http-client-restricted.spec ++++++
--- /var/tmp/diff_new_pack.3R9ZTu/_old  2022-02-11 23:11:06.007239353 +0100
+++ /var/tmp/diff_new_pack.3R9ZTu/_new  2022-02-11 23:11:06.011239366 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-http-client-restricted
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name http-client-restricted
 Name:           ghc-%{pkg_name}
-Version:        0.0.4
+Version:        0.0.5
 Release:        0
 Summary:        Restricting the servers that http-client will use
 License:        MIT

++++++ http-client-restricted-0.0.4.tar.gz -> 
http-client-restricted-0.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/http-client-restricted-0.0.4/CHANGELOG 
new/http-client-restricted-0.0.5/CHANGELOG
--- old/http-client-restricted-0.0.4/CHANGELOG  2001-09-09 03:46:40.000000000 
+0200
+++ new/http-client-restricted-0.0.5/CHANGELOG  2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,12 @@
+http-client-restricted (0.0.5) unstable; urgency=medium
+
+  * Deal with raw IPv6 addresses correctly, stripping square
+    brackets before passing on to name resolution. 
+    (The same fix was made in http-client 0.7.11, which this depends on.)
+    Thanks, Robert Vollmert.
+
+ -- Joey Hess <[email protected]>  Wed, 09 Feb 2022 11:24:29 -0400
+
 http-client-restricted (0.0.4) unstable; urgency=medium
 
   * Update to http-client 0.7.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-client-restricted-0.0.4/Network/HTTP/Client/Restricted.hs 
new/http-client-restricted-0.0.5/Network/HTTP/Client/Restricted.hs
--- old/http-client-restricted-0.0.4/Network/HTTP/Client/Restricted.hs  
2001-09-09 03:46:40.000000000 +0200
+++ new/http-client-restricted-0.0.5/Network/HTTP/Client/Restricted.hs  
2001-09-09 03:46:40.000000000 +0200
@@ -247,7 +247,7 @@
    where
        go context h p = do
                let connparams = NC.ConnectionParams
-                       { NC.connectionHostname = h
+                       { NC.connectionHostname = hstripped
                        , NC.connectionPort = fromIntegral p
                        , NC.connectionUseSecure = tls
                        , NC.connectionUseSocks = Nothing -- unsupprted
@@ -259,19 +259,20 @@
                        , addrProtocol = proto
                        , addrSocketType = Stream
                        }
-               addrs <- getAddrInfo (Just hints) (Just h) (Just serv)
+               addrs <- getAddrInfo (Just hints) (Just hstripped) (Just serv)
                bracketOnError
                        (firstSuccessful $ map tryToConnect addrs)
                        close
                        (\sock -> NC.connectFromSocket context sock connparams)
          where
+               hstripped = strippedHostName h -- strip brackets of raw IPv6 
hosts
                tryToConnect addr = case checkAddressRestriction cfg addr of
                        Nothing -> bracketOnError
                                (socket (addrFamily addr) (addrSocketType addr) 
(addrProtocol addr))
                                close
                                (\sock -> connect sock (addrAddress addr) >> 
return sock)
                        Just r -> throwIO r
-               firstSuccessful [] = throwIO $ NC.HostNotResolved h
+               firstSuccessful [] = throwIO $ NC.HostNotResolved hstripped
                firstSuccessful (a:as) = a `catch` \(e ::IOException) ->
                        case as of
                                [] -> throwIO e
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/http-client-restricted-0.0.4/http-client-restricted.cabal 
new/http-client-restricted-0.0.5/http-client-restricted.cabal
--- old/http-client-restricted-0.0.4/http-client-restricted.cabal       
2001-09-09 03:46:40.000000000 +0200
+++ new/http-client-restricted-0.0.5/http-client-restricted.cabal       
2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 Name: http-client-restricted
-Version: 0.0.4
+Version: 0.0.5
 Cabal-Version: >= 1.10
 Maintainer: Joey Hess <[email protected]>
 Author: Joey Hess
@@ -27,8 +27,8 @@
     Network.HTTP.Client.Restricted
   Build-Depends: 
       base >= 4.11.1.0 && < 5.0
-    , http-client >= 0.7 && < 0.8
-    , http-client-tls >= 0.3.2 && < 0.4
+    , http-client >= 0.7.11 && < 0.8
+    , http-client-tls >= 0.3.6 && < 0.4
     , connection >= 0.2.5
     , data-default
     , network (>= 3.0.0.0)

Reply via email to