rpms/curl/devel curl-7.16.2-print.patch, NONE, 1.1 curl.spec, 1.50, 1.51
Jindrich Novy (jnovy)
fedora-extras-commits at redhat.com
Mon Jun 18 18:49:36 UTC 2007
- Previous message (by thread): rpms/xapian-core/OLPC-2 xapian-core.spec,1.1,1.2
- Next message (by thread): rpms/gstreamer-plugins-base/OLPC-2 gst-theora-alloc-right-buffer-size.patch, NONE, 1.1 gst-theora-discontinuous-buffers.patch, NONE, 1.1 gst-theora-init-fix.patch, NONE, 1.1 gstreamer-plugins-base-0.10.9-docs.patch, NONE, 1.1 gstvideorate-145-146.patch, NONE, 1.1 gstvideorate-146-147.patch, NONE, 1.1 gstvideorate-147-148.patch, NONE, 1.1 gstvideorate-148-149.patch, NONE, 1.1 gstvideorate-leakfix.patch, NONE, 1.1 gstreamer-plugins-base.spec, 1.27, 1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jnovy
Update of /cvs/extras/rpms/curl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15395
Modified Files:
curl.spec
Added Files:
curl-7.16.2-print.patch
Log Message:
- don't print like crazy (#236981), backported from upstream CVS
curl-7.16.2-print.patch:
--- NEW FILE curl-7.16.2-print.patch ---
===================================================================
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;
}
Index: curl.spec
===================================================================
RCS file: /cvs/extras/rpms/curl/devel/curl.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- curl.spec 15 Jun 2007 13:22:32 -0000 1.50
+++ curl.spec 18 Jun 2007 18:49:01 -0000 1.51
@@ -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 @@
%setup -q
%patch1 -p1 -b .multilib
%patch2 -p1 -b .privlibs
+%patch3 -p1 -b .print
%build
aclocal
@@ -105,6 +107,9 @@
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Mon Jun 18 2007 Jindrich Novy <jnovy at redhat.com> 7.16.2-5
+- don't print like crazy (#236981), backported from upstream CVS
+
* Fri Jun 15 2007 Jindrich Novy <jnovy at redhat.com> 7.16.2-4
- another series of review fixes (#225671),
thanks to Paul Horwath
- Previous message (by thread): rpms/xapian-core/OLPC-2 xapian-core.spec,1.1,1.2
- Next message (by thread): rpms/gstreamer-plugins-base/OLPC-2 gst-theora-alloc-right-buffer-size.patch, NONE, 1.1 gst-theora-discontinuous-buffers.patch, NONE, 1.1 gst-theora-init-fix.patch, NONE, 1.1 gstreamer-plugins-base-0.10.9-docs.patch, NONE, 1.1 gstvideorate-145-146.patch, NONE, 1.1 gstvideorate-146-147.patch, NONE, 1.1 gstvideorate-147-148.patch, NONE, 1.1 gstvideorate-148-149.patch, NONE, 1.1 gstvideorate-leakfix.patch, NONE, 1.1 gstreamer-plugins-base.spec, 1.27, 1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list