Skip to content

Commit

Permalink
Merge pull request technomancy#2578 from glts/repo-policy-defaults
Browse files Browse the repository at this point in the history
Defer to Pomegranate for repository policy defaults
  • Loading branch information
technomancy authored May 20, 2019
2 parents 0019025 + d18c93a commit 9005bbe
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 9005bbe

Please sign in to comment.