From a73e6428db9be5a2d0cfd85e1640c28176654852 Mon Sep 17 00:00:00 2001 From: ianb Date: Thu, 20 Nov 2008 23:05:43 +0100 Subject: [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 --- buildlibxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildlibxml.py') 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): -- cgit v1.2.1