public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jindrich Novy <jnovy@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: - don't print like crazy (#236981), backported from upstream CVS
Date: Mon, 02 Nov 2026 14:25:40 GMT	[thread overview]
Message-ID: <179362954074.1.12622418293096921227.rpms-curl-01c165655873@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.21.0-9
Commit : 01c165655873cd67f85042680c83a86ab446c6a5
Author : Jindrich Novy <jnovy@fedoraproject.org>
Date   : 2007-06-18T18:49:01+00:00
Stats  : +52/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/01c165655873cd67f85042680c83a86ab446c6a5?branch=curl-v8.21.0-9

Log:
- don't print like crazy (#236981), backported from upstream CVS

---
diff --git a/curl-7.16.2-print.patch b/curl-7.16.2-print.patch
new file mode 100644
index 0000000..b3914c4
--- /dev/null
+++ b/curl-7.16.2-print.patch
@@ -0,0 +1,46 @@
+===================================================================
+RCS file: /cvsroot/curl/curl/lib/progress.c,v
+retrieving revision 1.83
+retrieving revision 1.84
+diff -u -r1.83 -r1.84
+--- curl/lib/progress.c	2007/03/23 04:23:53	1.83
++++ curl/lib/progress.c	2007/04/18 20:02:41	1.84
+@@ -245,6 +245,7 @@
+   long ulestimate=0;
+   long dlestimate=0;
+   long total_estimate;
++  bool shownow=FALSE;
+ 
+   now = Curl_tvnow(); /* what time is it */
+ 
+@@ -266,6 +267,7 @@
+ 
+   /* Calculations done at most once a second, unless end is reached */
+   if(data->progress.lastshow != (long)now.tv_sec) {
++    shownow = TRUE;
+ 
+     data->progress.lastshow = now.tv_sec;
+ 
+@@ -346,7 +348,12 @@
+       return result;
+     }
+ 
+-    /* If there's no external callback set, use internal code to show progress */
++    if(!shownow)
++      /* only show the internal progress meter once per second */
++      return 0;
++
++    /* If there's no external callback set, use internal code to show
++       progress */
+ 
+     if(!(data->progress.flags & PGRS_HEADERS_OUT)) {
+       if(data->reqdata.resume_from) {
+@@ -422,7 +429,7 @@
+     /* we flush the output stream to make it appear as soon as possible */
+     fflush(data->set.err);
+ 
+-  }
++  } /* !(data->progress.flags & PGRS_HIDE) */
+ 
+   return 0;
+ }

diff --git a/curl.spec b/curl.spec
index d6452c6..2f4a7fe 100644
--- a/curl.spec
+++ b/curl.spec
@@ -4,12 +4,13 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl 
 Version: 7.16.2
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
 Patch1: curl-7.15.3-multilib.patch
 Patch2: curl-7.16.0-privlibs.patch
+Patch3: curl-7.16.2-print.patch
 URL: http://curl.haxx.se/
 Requires: openssl
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -38,6 +39,7 @@ use cURL's capabilities internally.
 %setup -q 
 %patch1 -p1 -b .multilib
 %patch2 -p1 -b .privlibs
+%patch3 -p1 -b .print
 
 %build
 aclocal
@@ -105,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Mon Jun 18 2007 Jindrich Novy <jnovy@redhat.com> 7.16.2-5
+- don't print like crazy (#236981), backported from upstream CVS
+
 * Fri Jun 15 2007 Jindrich Novy <jnovy@redhat.com> 7.16.2-4
 - another series of review fixes (#225671),
   thanks to Paul Horwath

                 reply	other threads:[~2026-11-02 14:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179362954074.1.12622418293096921227.rpms-curl-01c165655873@fedoraproject.org \
    --to=jnovy@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox