summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-03-25 18:10:36 +0100
committerStefan Behnel <stefan_ml@behnel.de>2016-03-25 18:10:36 +0100
commitba1436871d9389781a55b1ae8160b545111aa806 (patch)
treed5554c05a83ecec4083ed4b7966e6f11894e4ace
parent177fb082acaf070cd9a8faeed6b5e539a2e24aa4 (diff)
downloadpython-lxml-ba1436871d9389781a55b1ae8160b545111aa806.tar.gz
make the ftp listings parser even less system dependent
-rw-r--r--buildlibxml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildlibxml.py b/buildlibxml.py
index b01acdfe..6959eb4f 100644
--- a/buildlibxml.py
+++ b/buildlibxml.py
@@ -140,14 +140,14 @@ def tryint(s):
def download_libxml2(dest_dir, version=None):
"""Downloads libxml2, returning the filename where the library was downloaded"""
- version_re = re.compile(r'^LATEST_LIBXML2_IS_([0-9.]+[0-9])')
+ version_re = re.compile(r'LATEST_LIBXML2_IS_([0-9.]+[0-9])')
filename = 'libxml2-%s.tar.gz'
return download_library(dest_dir, LIBXML2_LOCATION, 'libxml2',
version_re, filename, version=version)
def download_libxslt(dest_dir, version=None):
"""Downloads libxslt, returning the filename where the library was downloaded"""
- version_re = re.compile(r'^LATEST_LIBXSLT_IS_([0-9.]+[0-9])')
+ version_re = re.compile(r'LATEST_LIBXSLT_IS_([0-9.]+[0-9])')
filename = 'libxslt-%s.tar.gz'
return download_library(dest_dir, LIBXML2_LOCATION, 'libxslt',
version_re, filename, version=version)