switch to github API to get more tags
[alioth/musescore.git] / debian / watch
index 29ab550..bbc5e07 100644 (file)
@@ -1,11 +1,15 @@
 # debian/watch - check for a new upstream release and fetch it. See USCAN(1).
 # The script 'debian/repack' is called to perform changes for DFSG compliance.
+# Since repacking is used, do not add --rename when invoking uscan, please.
 version=4
 opts=\
 uversionmangle=s/%25/~/,\
 dversionmangle=s/\+dfsg\d*$//,\
+repack,\
 repacksuffix=+dfsg4,\
 compression=gz,\
-filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/MuseScore-$1\.tar\.gz/ \
-  https://github.com/musescore/MuseScore/tags .*/v?(2.[0-9](?:[0-9.]*(?:%25pre)?[0-9]+)?)\.tar\.gz \
+searchmode=plain,\
+filenamemangle=s/.+\/v?([0-9]+\.[0-9](?:[0-9.]*(?:%25pre)?[0-9]+)?)/MuseScore-$1.tar.gz/ \
+  https://api.github.com/repos/musescore/MuseScore/tags?per_page=200 \
+  https:[^"]*/tarball/v?(2\.[0-9](?:[0-9.]*(?:%25pre)?[0-9]+)?)(?="|$) \
 debian debian/repack