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

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