From ed2808c439adb3d2e79c05ca1417bb7bfecf6d80 Mon Sep 17 00:00:00 2001 From: Naacbin Date: Sat, 1 Jun 2024 17:28:57 +0200 Subject: [PATCH] Github version change on update_package.py --- scripts/utils/update_package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils/update_package.py b/scripts/utils/update_package.py index 07c49a017..5ee3c4cc3 100755 --- a/scripts/utils/update_package.py +++ b/scripts/utils/update_package.py @@ -89,12 +89,12 @@ def update_github_url(package): # Use findall as some packages have two urls (for 32 and 64 bits), we need to update both # Match urls like https://github.com/mandiant/capa/releases/download/v4.0.1/capa-v4.0.1-windows.zip matches = re.findall( - "[\"'](?Phttps://github.com/(?P[^/]+)/(?P[^/]+)/releases/download/(?P[^/]+)/[^\"']+)[\"']", + "[\"'](?Phttps://github.com/(?P[^/]+)/(?P[^/]+)/releases/download/v?(?P[^/]+)/[^\"']+)[\"']", content, ) # Match also urls like https://github.com/joxeankoret/diaphora/archive/refs/tags/3.0.zip matches += re.findall( - "[\"'](?Phttps://github.com/(?P[^/]+)/(?P[^/]+)/archive/refs/tags/(?P[^/]+).zip)[\"']", + "[\"'](?Phttps://github.com/(?P[^/]+)/(?P[^/]+)/archive/refs/tags/v?(?P[^/]+).zip)[\"']", content, )