From 6eb3f359d28c33cd22bd2e6564509ed15765256c Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Mon, 27 Aug 2018 20:07:00 +0300 Subject: 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. --- build-farm.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build-farm.el') 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) -- cgit v1.2.3