[arch-commits] Commit in haskell-http-client/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Aug 3 19:25:19 UTC 2020


    Date: Monday, August 3, 2020 @ 19:25:19
  Author: felixonmars
Revision: 668451

replace httpbin.org until https://github.com/postmanlabs/httpbin/issues/617 is fixed

Modified:
  haskell-http-client/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-03 19:24:03 UTC (rev 668450)
+++ PKGBUILD	2020-08-03 19:25:19 UTC (rev 668451)
@@ -17,6 +17,12 @@
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('82f9b85a5da976f8bc965a625dca2e1795bb53f88babf830aa82b511046da223fc1966d139c2d1c3d1f55103d7130715bab38a9280ec7dd9b579ead47fc068eb')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    # https://github.com/postmanlabs/httpbin/issues/617
+    sed -i 's|http://httpbin.org/redirect-to|http://httpbin.scrapinghub.com/redirect-to|' test/Network/HTTP/ClientSpec.hs
+}
+
 build() {
     cd $_hkgname-$pkgver
     
@@ -32,7 +38,7 @@
 
 check() {
     cd $_hkgname-$pkgver
-    runhaskell Setup test || :  # https://github.com/postmanlabs/httpbin/issues/617
+    runhaskell Setup test
 }
 
 package() {


More information about the arch-commits mailing list