[arch-commits] Commit in libfetch/trunk (PKGBUILD fetch-handle-temp-redirect.patch)

Dan McGee dan at archlinux.org
Fri Apr 22 23:35:40 UTC 2011


    Date: Friday, April 22, 2011 @ 19:35:40
  Author: dan
Revision: 120371

upgpkg: libfetch 2.33-3
fix 307 redirect being handled incorrectly

Added:
  libfetch/trunk/fetch-handle-temp-redirect.patch
Modified:
  libfetch/trunk/PKGBUILD

----------------------------------+
 PKGBUILD                         |   10 ++++++----
 fetch-handle-temp-redirect.patch |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-04-22 22:02:15 UTC (rev 120370)
+++ PKGBUILD	2011-04-22 23:35:40 UTC (rev 120371)
@@ -1,19 +1,21 @@
-# $Id$
+# $Id:$
 # Maintainer: Aaron Griffin <aaron at archlinux.org>
 # Contributor: Xavier Chantry <shiningxc at gmail.com>
 
 pkgname=libfetch
 pkgver=2.33
-pkgrel=2
+pkgrel=3
 pkgdesc="URL based download library"
 arch=('i686' 'x86_64')
 license=('BSD')
 depends=('openssl>=1.0.0')
 url="http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/libfetch/"
 source=(Makefile
-        ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz)
+        ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz
+        fetch-handle-temp-redirect.patch)
 md5sums=('7dffdd5a81bb32084a2f45e61f70dcf9'
-         'a176b94f7f30344ef8a71c047ca2136b')
+         'a176b94f7f30344ef8a71c047ca2136b'
+         '2ee40d7e7d76c39ae5500d89075ef8a6')
 
 # keep an upgrade path for older installations
 PKGEXT='.pkg.tar.gz'

Added: fetch-handle-temp-redirect.patch
===================================================================
--- fetch-handle-temp-redirect.patch	                        (rev 0)
+++ fetch-handle-temp-redirect.patch	2011-04-22 23:35:40 UTC (rev 120371)
@@ -0,0 +1,15 @@
+Index: http.c
+===================================================================
+RCS file: /cvsroot/pkgsrc/net/libfetch/files/http.c,v
+retrieving revision 1.29
+diff -u -r1.29 http.c
+--- http.c	24 Jan 2010 19:10:35 -0000	1.29
++++ http.c	19 Apr 2011 13:29:04 -0000
+@@ -974,6 +974,7 @@
+ 		case HTTP_MOVED_PERM:
+ 		case HTTP_MOVED_TEMP:
+ 		case HTTP_SEE_OTHER:
++		case HTTP_TEMP_REDIRECT:
+ 			/*
+ 			 * Not so fine, but we still have to read the
+ 			 * headers to get the new location.




More information about the arch-commits mailing list