Skip to content

Commit 3fb427c

Browse files
committed
Always report bad metadata, even if fixing [#455]
1 parent eab4740 commit 3fb427c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/clojars/tools/repair_metadata.clj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
(println "Usage: repo-path backup-path (:repair|:report)")
8686
(let [[repo backup-dir action] args]
8787
(doseq [md (find-bad-metadata repo)]
88-
(if (= ":repair" action)
89-
(repair-metadata (io/file backup-dir) md)
90-
(prn md))))))
88+
(when (= ":repair" action)
89+
(repair-metadata (io/file backup-dir) md))
90+
(prn (-> md
91+
(dissoc :version-dirs :metadata)
92+
(update :file (memfn getAbsolutePath))))))))

0 commit comments

Comments
 (0)