diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2024-01-10 20:13:33 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2024-01-10 20:20:05 -0500 |
commit | 078506bc412531e5f37bbb6a6064bc24f83ce977 (patch) | |
tree | 8b78e7a18e14a7c030f637aef9f01e84c2af8b4c | |
parent | 107e4776e07fe21db196214b02373130a627cd49 (diff) |
notifications.sh: account for pkgver epochwip-2023-12
-rw-r--r-- | src/lib/notifications.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/notifications.sh b/src/lib/notifications.sh index 99f9bbf..0652323 100644 --- a/src/lib/notifications.sh +++ b/src/lib/notifications.sh @@ -7,11 +7,9 @@ notify_release() # ( ssh_cmd* ) file_list->STDIN local reject_rx='-debug-' # example "selected" $file_list entry, to be fed through $filename_rx: # libre/gst-plugins-bad-1.22.8-1.parabola1-x86_64.pkg.tar.zst - # (repo )/(pkgname )-(pkgver )- -(arch ) - local filename_rx="^([a-z]+)/([0-9A-Za-z\._@\+\-]+)-([0-9A-Za-z\._]+)-[^/-]+-([0-9a-z_]+)${select_rx}$" - # example $filename_subst, sent to pbot: - # (gst-plugins-bad 1.22.8)->libre/x86_64 - local filename_subst='(\2 \3)->\1/\4' + # (repo )/(pkgname )- (pkgver )- -(arch ) + local filename_rx="^([a-z]+)/([0-9A-Za-z\._@\+\-]+)-([0-9]+:)?([0-9A-Za-z\._]+)-[^/-]+-([0-9a-z_]+)${select_rx}" + local filename_subst='(\2 \4)->\1/\5' # eg: (iceweasel 121.0.1)->libre/x86_64 local filename_sed="s|${filename_rx}|${filename_subst}|" local filename local releases=( $(while read -r -d '' # process librerelease::$file_list via STDIN |