John Found wrote:
> In order to write an autoupdater, I need to download the latest SQLite
> amalgamation.
> Is there a permanent link to the subject, or the only way is to parse the
> download page
> for links to "sqlite-amalgamation-*.zip" or to build it from the fossil
> checkout?
The apsw installer, setup.py, can parse the download page. This has likely been
tested very well:
# work out the version
if self.version is None:
write(" Getting download page to work out current SQLite version")
page=self.download("https://sqlite.org/download.html", text=True,
checksum=False)
match=re.search(r'sqlite-amalgamation-3([0-9][0-9])([0-9][0-9])([0-9][0-9])\.zip',
page)
if match:
self.version="3.%d.%d.%d" % tuple([int(match.group(n)) for n in
range(1,4)])
if self.version.endswith(".0"):
self.version=self.version[:-len(".0")]
else:
write("Unable to determine current SQLite version. Use
--version=VERSION", sys.stderr)
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users