diff --git a/python-urlgrabber.spec b/python-urlgrabber.spec index d7a3e02..7b519a4 100644 --- a/python-urlgrabber.spec +++ b/python-urlgrabber.spec @@ -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 @@ Patch3: urlgrabber-ftp-port.patch 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 @@ authentication, proxies and more. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build python setup.py build @@ -53,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/urlgrabber %changelog +* Wed Oct 14 2008 James Antill 3.0.0-10 +- Have the progress bar have a small bar, for a virtual size doubling. + * Thu Jul 10 2008 James Antill 3.0.0-9 - Make urlgrabber usable if openssl is broken - Relates: bug#454179 diff --git a/urlgrabber-extra-progress.patch b/urlgrabber-extra-progress.patch new file mode 100644 index 0000000..f1c9df6 --- /dev/null +++ b/urlgrabber-extra-progress.patch @@ -0,0 +1,13 @@ +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~