 (ns mdr2.archive
   "Main entry point into the archive
 
-For archiving we need to interface with an existing hellish system
+For archiving we need to interface with an existing legacy system
 named agadir. It doesn't do very much in very complicated ways.
 Probably best to replace it at some point. In the mean time we try to
 stay away from it and not to change too much. From reading the source

        ;; FIXME: This will fail in the light of multiple isos
        iso-archive-name (str (container-id production) ".iso")
        iso-archive-path (.getPath (file archive-path iso-archive-name))]
    (fs/copy+ (path/iso-name production) iso-archive-path)))

(defn create-rdf
  "Create an rdf file and place it in the archive spool directory"

3. place this iso in the magic spool directory
4. generate the rdf as above
5. add an entry to a table in a database. The `sektion` should be `cdimage`
"
  ;; FIXME: Most likely this should be split off into a separate lib that
  ;; replaces all of agadir at a later point in time. For instructions on
  ;; how to do this see
  ;; https://github.com/technomancy/leiningen/blob/stable/doc/DEPLOY.md

  (:require [clojure.java.jdbc :as jdbc]
            [clojure.java.io :refer [file]]
            [clojure.tools.logging :as log]
