Michael R. Crusoe pushed to branch master at Debian Med / community / package_template
Commits: f40af143 by Michael R. Crusoe at 2020-04-17T09:37:39+02:00 github: rename downloaded release to include the package name - - - - - 2 changed files: - debian/watch - personalise_template Changes: ===================================== debian/watch ===================================== @@ -18,9 +18,11 @@ version=4 # Uncomment to find new files on Github # - when using releases: -# https://github.com/#GITHUBUSER#/#PACKAGE#/releases/latest .*/archive/#PREFIX#@ANY_VERSION@@ARCHIVE_EXT@ +# opts="filenamemangle=s%(?:.*?)?#PREFIX#(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%" \ +# https://github.com/#GITHUBUSER#/#PACKAGE#/releases/latest .*/archive/#PREFIX#@ANY_VERSION@\.tar\.gz # - when using tags -# https://github.com/#GITHUBUSER#/#PACKAGE#/tags .*/#PREFIX#@ANY_VERSION@@ARCHIVE_EXT@ +# opts="filenamemangle=s%(?:.*?)?#PREFIX#(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%" \ +# https://github.com/#GITHUBUSER#/#PACKAGE#/tags .*/#PREFIX#@ANY_VERSION@\.tar\.gz # Remark: frequently you can do s/#PREFIX#/v?/ since 'v' or nothing is quite common but there are other prefixes possible # PyPi repository of Python modules ===================================== personalise_template ===================================== @@ -46,7 +46,8 @@ fi if echo "$PHOMEPAGE" | grep -q 'github\.com' ; then echo "version=4\n" > watch - echo "$PHOMEPAGE/releases .*/archive/v?@ANY_VERSION@@ARCHIVE_EXT@" >> watch + echo "opts=\"filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-\$1.tar.gz%\" \\" >> watch + echo "$PHOMEPAGE/releases .*/archive/v?@ANY_VERSION@\.tar\.gz" >> watch fi if echo "$PHOMEPAGE" | grep -q 'gitlab\.com' ; then echo "version=4\n" > watch View it on GitLab: https://salsa.debian.org/med-team/community/package_template/-/commit/f40af143c998c7c88a731a5514e16d99e33b970a -- View it on GitLab: https://salsa.debian.org/med-team/community/package_template/-/commit/f40af143c998c7c88a731a5514e16d99e33b970a You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
