From 2b784c267f8688111ed3f745454e349500f426bc Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 24 May 2019 16:03:40 +0100 Subject: WIP --- app/jobs/govuk_guix/fetch_revision_job.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/jobs/govuk_guix/fetch_revision_job.rb') diff --git a/app/jobs/govuk_guix/fetch_revision_job.rb b/app/jobs/govuk_guix/fetch_revision_job.rb index 7b1acdf..0265c6e 100644 --- a/app/jobs/govuk_guix/fetch_revision_job.rb +++ b/app/jobs/govuk_guix/fetch_revision_job.rb @@ -53,6 +53,10 @@ class GovukGuix::FetchRevisionJob < Que::Job store_path = output.last.strip logger.debug(self.class) { "store_path: #{store_path}" } + unless Guix.valid_store_path? store_path + raise "Invalid store path: #{store_path}" + end + backend.add_in_use_store_path(store_path) if backend GovukGuix::Revision.transaction do -- cgit v1.2.3