[packages/links2] - updated to 2.14 - updated links2-config-dirs.patch

witekfl witekfl at pld-linux.org
Sat Jul 8 17:50:24 CEST 2017


commit 68195e3c20dda5568427bf401375149bb45be72d
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Sat Jul 8 17:49:48 2017 +0200

    - updated to 2.14
    - updated links2-config-dirs.patch

 links2-config-dirs.patch | 37 ++++++++++++++++++++++++-------------
 links2.spec              |  6 +++---
 2 files changed, 27 insertions(+), 16 deletions(-)
---
diff --git a/links2.spec b/links2.spec
index 1e48b7a..a1f27dd 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.13
-Release:	2
+Version:	2.14
+Release:	1
 Epoch:		1
 License:	GPL v2
 Group:		Applications/Networking
 Source0:	http://links.twibright.com/download/links-%{version}.tar.bz2
-# Source0-md5:	af418c83909ee73c09b95470bda6e377
+# Source0-md5:	0d11b388de22ba280008a36a409a34c6
 Source1:	%{name}.desktop
 Source2:	%{name}.1.pl
 Source3:	%{name}.png
diff --git a/links2-config-dirs.patch b/links2-config-dirs.patch
index 126ce73..ab4575e 100644
--- a/links2-config-dirs.patch
+++ b/links2-config-dirs.patch
@@ -9,9 +9,10 @@
  Per-user configfile, automatically created by
  .B links.
  .SH PLATFORMS
---- links-2.8/default.c	2013-08-26 01:08:07.000000000 +0200
-+++ links-2.8/default.c.new	2013-10-07 19:37:27.079790294 +0200
-@@ -729,16 +729,16 @@
+
+--- links-2.14/default.c.orig	2016-11-16 23:49:10.000000000 +0100
++++ links-2.14/default.c	2017-07-08 17:18:34.278675496 +0200
+@@ -749,7 +749,7 @@ skip_path_conv:;
  		while (home_links[0] && dir_sep(home_links[strlen(cast_const_char home_links) - 1])) home_links[strlen(cast_const_char home_links) - 1] = 0;
  		EINTRLOOP(rs, stat(cast_const_char home_links, &st));
  		if (!rs && S_ISDIR(st.st_mode)) {
@@ -19,15 +20,25 @@
 +			add_to_strn(&home_links, cast_uchar "/links2");
  		} else {
  			fprintf(stderr, "CONFIG_DIR set to %s. But directory %s doesn't exist.\n\007", config_dir, home_links);
- 			sleep(3);
- 			mem_free(home_links);
- 			home_links = stracpy(home);
--			add_to_strn(&home_links, cast_uchar ".links");
-+			add_to_strn(&home_links, cast_uchar ".links2");
- 		}
- 		mem_free(config_dir);
--	} else add_to_strn(&home_links, cast_uchar ".links");
-+	} else add_to_strn(&home_links, cast_uchar ".links2");
+ 			portable_sleep(3000);
+@@ -761,9 +761,9 @@ skip_path_conv:;
+ 	} else {
+ 		add_dot_links:
+ #ifdef OPENVMS
+-		add_to_strn(&home_links, cast_uchar "links");
++		add_to_strn(&home_links, cast_uchar "links2");
+ #else
+-		add_to_strn(&home_links, cast_uchar ".links");
++		add_to_strn(&home_links, cast_uchar ".links2");
+ #endif
+ 	}
+ 	EINTRLOOP(rs, stat(cast_const_char home_links, &st));
+@@ -792,7 +792,7 @@ skip_path_conv:;
+ #ifdef DOS
+ 	add_to_strn(&home_links, cast_uchar "links.cfg");
+ #else
+-	add_to_strn(&home_links, cast_uchar "links");
++	add_to_strn(&home_links, cast_uchar "links2");
+ #endif
  	EINTRLOOP(rs, stat(cast_const_char home_links, &st));
  	if (rs) {
- #ifdef HAVE_MKDIR
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/links2.git/commitdiff/68195e3c20dda5568427bf401375149bb45be72d



More information about the pld-cvs-commit mailing list