rpms/python-urlgrabber/devel urlgrabber-extra-progress.patch, NONE, 1.1 python-urlgrabber.spec, 1.29, 1.30
James Antill
james at fedoraproject.org
Wed Oct 15 04:11:50 UTC 2008
Author: james
Update of /cvs/pkgs/rpms/python-urlgrabber/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5579
Modified Files:
python-urlgrabber.spec
Added Files:
urlgrabber-extra-progress.patch
Log Message:
* Wed Oct 14 2008 James Antill <james at fedoraproject.org> 3.0.0-10
- Have the progress bar have a small bar, for a virtual size doubling.
urlgrabber-extra-progress.patch:
--- NEW FILE urlgrabber-extra-progress.patch ---
diff -ru urlgrabber-3.0.0-orig/urlgrabber/progress.py urlgrabber-3.0.0/urlgrabber/progress.py
--- urlgrabber-3.0.0-orig/urlgrabber/progress.py 2008-10-14 23:46:24.000000000 -0400
+++ urlgrabber-3.0.0/urlgrabber/progress.py 2008-10-14 23:57:53.000000000 -0400
@@ -258,6 +258,8 @@
# Make text grow a bit before we start growing the bar too
blen = 4 + tl.rest_split(8 + 8 + 4)
bar = '='*int(blen * frac)
+ if (blen * frac) - int(blen * frac) >= 0.5:
+ bar += '-'
ui_bar = tl.add(' [%-*.*s]' % (blen, blen, bar))
out = '\r%-*.*s%s%s%s%s%s%s%s' % (tl.rest(), tl.rest(), text,
ui_sofar_pc, ui_pc, ui_bar,
Only in urlgrabber-3.0.0/urlgrabber: progress.py~
Index: python-urlgrabber.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-urlgrabber/devel/python-urlgrabber.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- python-urlgrabber.spec 28 Jul 2008 04:40:31 -0000 1.29
+++ python-urlgrabber.spec 15 Oct 2008 04:11:19 -0000 1.30
@@ -3,7 +3,7 @@
Summary: A high-level cross-protocol url-grabber
Name: python-urlgrabber
Version: 3.0.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Source0: urlgrabber-%{version}.tar.gz
Patch0: urlgrabber-keepalive.patch
Patch1: urlgrabber-string-type.patch
@@ -12,6 +12,7 @@
Patch4: urlgrabber-progress-ui.patch
Patch5: urlgrabber-grab-no-range.patch
Patch6: urlgrabber-no-ssl-ok.patch
+Patch7: urlgrabber-extra-progress.patch
License: LGPLv2+
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -34,6 +35,7 @@
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%build
python setup.py build
@@ -53,6 +55,9 @@
%{_bindir}/urlgrabber
%changelog
+* Wed Oct 14 2008 James Antill <james at fedoraproject.org> 3.0.0-10
+- Have the progress bar have a small bar, for a virtual size doubling.
+
* Thu Jul 10 2008 James Antill <james at fedoraproject.org> 3.0.0-9
- Make urlgrabber usable if openssl is broken
- Relates: bug#454179
More information about the scm-commits
mailing list