diff options
author | ianb <none@none> | 2008-11-20 23:05:43 +0100 |
---|---|---|
committer | ianb <none@none> | 2008-11-20 23:05:43 +0100 |
commit | a73e6428db9be5a2d0cfd85e1640c28176654852 (patch) | |
tree | 88552585cd352748b32f2a68a5e0c72ff71747ca /buildlibxml.py | |
parent | 22aaa957148dddad3b96615e19a19aaa7c20ffac (diff) | |
download | python-lxml-a73e6428db9be5a2d0cfd85e1640c28176654852.tar.gz |
[svn r4025] Substitute the version in the libxml2/libxslt filenames, even when the version was given explicitly (otherwise giving an explicit version was broken)
--HG--
branch : trunk
Diffstat (limited to 'buildlibxml.py')
-rw-r--r-- | buildlibxml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlibxml.py b/buildlibxml.py index 2fe09ed5..38f2bedb 100644 --- a/buildlibxml.py +++ b/buildlibxml.py @@ -50,7 +50,6 @@ def download_library(dest_dir, location, name, version_re, filename, raise Exception( "Could not find the most current version of the %s from the files: %s" % (name, fns)) - filename = filename % version except IOError: # network failure - maybe we have the files already? latest = (0,0,0) @@ -66,6 +65,7 @@ def download_library(dest_dir, location, name, version_re, filename, break else: raise + filename = filename % version full_url = urlparse.urljoin(location, filename) dest_filename = os.path.join(dest_dir, filename) if os.path.exists(dest_filename): |