From 821b25ceca2b26017d49698bff8b15455a38ee20 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 24 Oct 2019 09:36:19 -0700 Subject: [PATCH] Account for colons in package version numbers --- packaging_scripts/pkgfiles.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging_scripts/pkgfiles.py b/packaging_scripts/pkgfiles.py index b8e00c1..f563e0f 100644 --- a/packaging_scripts/pkgfiles.py +++ b/packaging_scripts/pkgfiles.py @@ -7,10 +7,11 @@ import shutil from pathlib import Path # ========== Constants ========== +# Some versions might have a colon (:) # Match any pkgfile of any name with the .pkg.tar.* extension -PKGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?$" +PKGREGEX = r"^[\:\w.+/-]+\.pkg\.tar(\.\w+)?$" # Match any sigfile of any name with the .pkg.tar.*.sig extension -SIGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?\.sig$" +SIGREGEX = r"^[\:\w.+/-]+\.pkg\.tar(\.\w+)?\.sig$" # ========== Logging Setup ===========