Skip to content

Commit

Permalink
Defer to Pomegranate repo policy defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
glts committed May 19, 2019
1 parent 0019025 commit d18c93a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions leiningen-core/src/leiningen/core/classpath.clj
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@
:non-proxy-hosts (get-non-proxy-hosts)})))))

(defn- update-policies [update checksum [repo-name opts]]
[repo-name (merge {:update (or update :daily)
:checksum (or checksum :fail)} opts)])
(let [project-policies (cond-> {}
update (assoc :update update)
checksum (assoc :checksum checksum))]
[repo-name (merge project-policies opts)]))

(defn- print-failures [e]
(doseq [result (.getArtifactResults (.getResult e))
Expand Down

0 comments on commit d18c93a

Please sign in to comment.