[packages/links2] - updated to 2.10 - commented pl.po-update.patch

witekfl witekfl at pld-linux.org
Wed Jul 15 12:23:20 CEST 2015


commit 2fa93c5a71e7978ac69ad6d4db769f00022f38b7
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Wed Jul 15 12:22:11 2015 +0200

    - updated to 2.10
    - commented pl.po-update.patch

 links2-gzip_fallback.patch | 33 +++++++++++++++++----------------
 links2.spec                |  8 ++++----
 2 files changed, 21 insertions(+), 20 deletions(-)
---
diff --git a/links2.spec b/links2.spec
index 3b8b723..0fbcb7b 100644
--- a/links2.spec
+++ b/links2.spec
@@ -13,13 +13,13 @@ Summary(pt_BR.UTF-8):	O links é um browser para modo texto, similar ao lynx
 Summary(ru.UTF-8):	Текстовый WWW броузер типа Lynx
 Summary(uk.UTF-8):	Текстовий WWW броузер типу Lynx
 Name:		links2
-Version:	2.8
-Release:	4
+Version:	2.10
+Release:	1
 Epoch:		1
 License:	GPL v2
 Group:		Applications/Networking
 Source0:	http://links.twibright.com/download/links-%{version}.tar.bz2
-# Source0-md5:	d5fb7c45ca41dad2b20f5c056498ea07
+# Source0-md5:	beb7dc2571533874045bcf5160d2d0a3
 Source1:	%{name}.desktop
 Source2:	%{name}.1.pl
 Source3:	%{name}.png
@@ -114,7 +114,7 @@ Links - це текстовий WWW броузер, на перший погля
 %patch5 -p1
 %patch6 -p1
 %patch9 -p1
-%patch10 -p1
+#%%patch10 -p1
 %patch17 -p1
 %patch18 -p1
 
diff --git a/links2-gzip_fallback.patch b/links2-gzip_fallback.patch
index 3f7b799..179817d 100644
--- a/links2-gzip_fallback.patch
+++ b/links2-gzip_fallback.patch
@@ -1,19 +1,20 @@
---- links-2.7/file.c.orig	2013-06-23 19:03:40.928839125 +0200
-+++ links-2.7/file.c	2013-06-23 19:40:15.742080351 +0200
-@@ -233,11 +233,16 @@
- 		mem_free(name);
- 		setcstate(c, S_FILE_TYPE); abort_connection(c); return;
+--- links-2.10/file.c.gzip	2015-07-15 12:17:21.831370450 +0200
++++ links-2.10/file.c	2015-07-15 12:17:25.037715949 +0200
+@@ -224,11 +224,17 @@ void file_func(struct connection *c)
+ 		abort_connection(c);
+ 		return;
+ 	}
++opening:
+ 	if (!(name = get_filename(c->url))) {
+ 		setcstate(c, S_OUT_OF_MEM); abort_connection(c); return;
  	}
-+opening:	
- 	EINTRLOOP(h, open(cast_const_char name, O_RDONLY | O_NOCTTY));
- 	if (h == -1) {
- 		int er = errno;
- 		ENULLLOOP(d, opendir(cast_const_char name));
- 		if (d) goto dir;
-+		if (strncmp(name + strlen(name) - 3, ".gz", 3) != 0) {
-+			add_to_strn(&name, ".gz");
+ 	EINTRLOOP(rs, stat(cast_const_char name, &stt));
+ 	if (rs) {
++		if (strncmp(c->url + strlen(c->url) - 3, ".gz", 3) != 0) {
++			add_to_strn(&c->url, ".gz");
++			mem_free(name);
 +			goto opening;
-+		} 
++		}
  		mem_free(name);
- 		setcstate(c, get_error_from_errno(er));
- 		abort_connection(c);
+ 		setcstate(c, get_error_from_errno(errno)); abort_connection(c); return;
+ 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/links2.git/commitdiff/2fa93c5a71e7978ac69ad6d4db769f00022f38b7



More information about the pld-cvs-commit mailing list