213
213
# get HPLIP version info from hplip site
214
214
if HPLIP_latest_ver == "0.0.0": ## if failed to connect the sourceforge site, then check HPLIP site.
215
pat = re.compile(r"""The current version of the HPLIP solution is version (\d{1,}\.\d{1,}\.\d{1,}[a-z]{0,})\. \(.*""")
216
216
sts, HPLIP_Ver_file = utils.download_from_network(HPLIP_WEB_SITE)
218
218
HPLIP_latest_ver = parse_HPLIP_version(HPLIP_Ver_file, pat)