summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2018-08-27 20:07:00 +0300
committerAlex Kost <alezost@gmail.com>2018-08-27 20:07:00 +0300
commit6eb3f359d28c33cd22bd2e6564509ed15765256c (patch)
treeadfdccde67e1ec801c8150632b15064ef265ee15
parentpopup: Prompt for missing latest build args if needed (diff)
downloademacs-build-farm-6eb3f359d28c33cd22bd2e6564509ed15765256c.tar.gz
Fix 'build-farm-job-regexp'
This is a followup to commit 4fff68f8401a772d92a8698e0391d260fae8ef69. * build-farm.el (build-farm-job-regexp): Construct regexp depending on 'build-farm-guix-system-types' and 'build-farm-nix-system-types' variables. Otherwise job specification may be miss-interpreted.
-rw-r--r--build-farm.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-farm.el b/build-farm.el
index 9639d3c..4d7a01b 100644
--- a/build-farm.el
+++ b/build-farm.el
@@ -188,7 +188,11 @@ If URL is nil, use variable `build-farm-url'."
(message "The build farm cache has been cleared."))
-(defvar build-farm-job-regexp ".+\\.[^.]+"
+(defvar build-farm-job-regexp
+ (concat ".+\\."
+ (regexp-opt (append build-farm-guix-system-types
+ build-farm-nix-system-types))
+ "\\'")
"Regexp matching full name of a job (including system).")
(defun build-farm-job-name-specification (name version)