File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
[version-clj.core :as versions])
9
9
(:import java.util.zip.GZIPInputStream))
10
10
11
- (def artifacts-file (str (System/getProperty " java.io.tmpdir" )
12
- " / refactor-nrepl-artifacts-cache" ))
11
+ (def artifacts-file (str (io/file ( System/getProperty " java.io.tmpdir" )
12
+ " refactor-nrepl-artifacts-cache" ) ))
13
13
14
14
(defn get-last-modified-from-file
15
15
" Returns last modified time in milliseconds or nil if file does not exist."
18
18
(if (zero? lm) nil lm)))
19
19
20
20
; ; structure here is {"prismatic/schem" ["0.1.1" "0.2.0" ...]}
21
- (defonce artifacts (atom (if (.exists (io/as- file artifacts-file))
21
+ (defonce artifacts (atom (if (.exists (io/file artifacts-file))
22
22
(->> artifacts-file slurp edn/read-string (into {}))
23
23
{})
24
24
:meta {:last-modified
25
25
(get-last-modified-from-file artifacts-file)}))
26
+
26
27
(def millis-per-day (* 24 60 60 1000 ))
27
28
28
29
(defn- get-proxy-opts
You can’t perform that action at this time.
0 commit comments