lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

common-updater-scripts,directoryListingUpdater: handle ${pname}_${version} file names

these are found for example in wikimedia's directories:
<https://dumps.wikimedia.org/other/kiwix/zim/wikipedia/>

Colin 26feb287 1366d1af

+1 -1
+1 -1
pkgs/common-updater/scripts/list-directory-versions
··· 61 61 link_url = link.get("href", None) 62 62 if link_url is not None: 63 63 match = re.fullmatch( 64 - rf"(.*/)?{args.pname}-([\d.]+?(-[\d\w.-]+?)?)(\.tar)?(\.[^.]*)", link_url 64 + rf"(.*/)?{args.pname}[-_]([\d.]+?(-[\d\w.-]+?)?)(\.tar)?(\.[^.]*)", link_url 65 65 ) 66 66 if match: 67 67 version = match.group(2)