[packages/wget] Rel 2; print prepend only when needed
arekm
arekm at pld-linux.org
Fri Jan 31 19:44:07 CET 2025
commit eb0b38293d38de7cb6daf78c67c77c2fbb8495e4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Jan 31 19:25:53 2025 +0100
Rel 2; print prepend only when needed
prepend-silence.patch | 28 ++++++++++++++++++++++++++++
wget.spec | 4 +++-
2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/wget.spec b/wget.spec
index 18db78c..3b1dbc7 100644
--- a/wget.spec
+++ b/wget.spec
@@ -20,7 +20,7 @@ Summary(uk.UTF-8): Утиліта для отримання файлів по п
Summary(zh_CN.UTF-8): [通讯]功能强大的下载程序,支持断点续传
Name: wget
Version: 1.25.0
-Release: 1
+Release: 2
License: GPL v3+ with OpenSSL exception
Group: Networking/Utilities
Source0: http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz
@@ -32,6 +32,7 @@ Patch1: %{name}-wgetrc_path.patch
Patch2: %{name}-home_etc.patch
Patch3: %{name}-ssl-certs.patch
Patch4: user.xdg.origin.url.patch
+Patch5: prepend-silence.patch
URL: http://www.gnu.org/software/wget/
BuildRequires: autoconf >= 2.64
BuildRequires: autoconf-archive
@@ -146,6 +147,7 @@ Proxy серверів, настроюваність.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
diff --git a/prepend-silence.patch b/prepend-silence.patch
new file mode 100644
index 0000000..86dd7da
--- /dev/null
+++ b/prepend-silence.patch
@@ -0,0 +1,28 @@
+From d98df662121977f3d3ba69d0cfbd4d3322714f2d Mon Sep 17 00:00:00 2001
+From: Darshit Shah <darnir at gnu.org>
+Date: Fri, 15 Nov 2024 22:28:41 +0100
+Subject: * src/url.c (maybe_prepend_scheme): Print message only in verbose
+ mode
+
+---
+ src/url.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+(limited to 'src/url.c')
+
+diff --git a/src/url.c b/src/url.c
+index 2f27c48a..913db4f1 100644
+--- a/src/url.c
++++ b/src/url.c
+@@ -625,7 +625,7 @@ maybe_prepend_scheme (const char *url)
+ return NULL;
+
+
+- fprintf(stderr, "Prepended http:// to '%s'\n", url);
++ logprintf (LOG_VERBOSE, _ ("Prepended http:// to '%s'\n"), url);
+ return aprintf ("http://%s", url);
+ }
+
+--
+cgit v1.2.3-70-g09d2
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wget.git/commitdiff/eb0b38293d38de7cb6daf78c67c77c2fbb8495e4
More information about the pld-cvs-commit
mailing list