[Pkg-ruby-extras-maintainers] r368 - tools/ruby-pkg-tools/trunk/bin
Thierry Reding
beatle-guest at costa.debian.org
Tue Mar 21 17:54:12 UTC 2006
Author: beatle-guest
Date: 2006-03-21 17:54:11 +0000 (Tue, 21 Mar 2006)
New Revision: 368
Modified:
tools/ruby-pkg-tools/trunk/bin/pkg-ruby-get-sources
Log:
* Fixed a small bug, where trailing newlines would screw up the progress
display when downloading.
Modified: tools/ruby-pkg-tools/trunk/bin/pkg-ruby-get-sources
===================================================================
--- tools/ruby-pkg-tools/trunk/bin/pkg-ruby-get-sources 2006-03-21 17:52:34 UTC (rev 367)
+++ tools/ruby-pkg-tools/trunk/bin/pkg-ruby-get-sources 2006-03-21 17:54:11 UTC (rev 368)
@@ -163,6 +163,10 @@
# downloads a given package from a specified URL
def download(package,version,tarball_url)
+ # remove any leading or trailing whitespace (including \n) which would
+ # otherwise ruin the nice progress display
+ tarball_url.strip!
+
# follow redirection
begin
tarball_url = follow(tarball_url)
More information about the pkg-ruby-extras-maintainers
mailing list