Account for colons in package version numbers

This commit is contained in:
Eric Torres 2019-10-24 09:36:19 -07:00
parent 0c12169130
commit 821b25ceca

View File

@ -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 ===========