Bug #67401 Setup the download page to be tracked by Debian for new releases
Submitted: 28 Oct 2012 16:24 Modified: 6 Jun 2022 16:29
Reporter: Sandro Tosi Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version:1.0.7 OS:Any
Assigned to: CPU Architecture:Any

[28 Oct 2012 16:24] Sandro Tosi
Description:
Hello,
as I've mentioned here, the MySQL Connector/Python download page poses some problem to be tracked by Debian for new upstream releases.

[1] http://geert.vanderkelen.org/connectorpython-launchpad-updated/#comment-1908

We have a tool to monitor upstream websites for new releases and notify the maintainer to package the new release. The tool (namely 'uscan') is feed by a debian packaging file ('debian/watch') which contains the URL to an upstream webpage and a pattern, that should match a filename in the webpage. It is also possible to scan a "Directory listing" of files.

With the current webpage, it's not possible to use this method, mainly due to the combobox+'Select' button needed to select the format to download.

Do you think it's possible to provide a Debian-friendly page, or a directory listing of all the available tarballs so that we can correctly setup the Debian new-release monitoring tools and be able to promptly update the Debian package (f.e. we just updated from 0.3.2 to 0.1.7 :) ).

Thanks for considering,
Sandro

How to repeat:
We can't use uscan+debian/watch to monitor new releases of MySQL Connector/Python.
[14 Dec 2012 17:19] Sveta Smirnova
Thank you for the reasonable feature request.
[6 Jun 2022 16:29] Javier TreviƱo
For the server, there is a working (but fairly horrific) watch file normally located at
https://salsa.debian.org/mariadb-team/mysql/-/blob/mysql-8.0/ubuntu/devel/debi
an/watch

But a working version should be:
version=3
opts=\
downloadurlmangle=s/\/downloads\/gpg\/?\?file=(mysql-boost-([\d\.]*).tar.gz).*
/\/get\/Downloads\/MySQL-8.0\/$1/,pgpsigurlmangle=s/\/get\/Downloads\/MySQL-8.
0\/(mysql-boost-([\d\.]*).tar.gz)/\/downloads\/gpg\/?file=$1&p=23/,filenameman
gle=s/\/downloads\/gpg\/?\?file=mysql\-boost\-([\d\.]*)\.tar\.gz.*/mysql-boost
-$1.tar.gz/ \
http://dev.mysql.com/downloads/mysql/8.0.html?os=src
/downloads/gpg/\?file=mysql-boost-([\d\.]*).tar.gz&p=23

Hopefully you can adapt this by replacing the urls.