Changeset 22 in code for trunk/cli/publish.ml


Ignore:
Timestamp:
Nov 2, 2022, 9:47:20 PM (2 years ago)
Author:
fox
Message:

Use txt.conf to generate index.pck meta; fix double load while indexing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/publish.ml

    r21 r22  
    1 let targets () =
    2         let kv = Logarion.File_store.of_kv_file () in
     1let targets kv =
    32        let pub_dir =
    43                try Logarion.Store.KV.find "Pubdir" kv with Not_found ->
     
    1413open Logarion
    1514let publish ids =
     15        let kv = Logarion.File_store.of_kv_file () in
    1616        let predicate t = List.mem t.Text.id ids in
    17         let targets = targets () in
     17        let targets = targets kv in
    1818        let pub_dirs = List.map (fun x -> snd x) targets in
    1919        File_store.iter ~predicate (fun (_t, p) ->
Note: See TracChangeset for help on using the changeset viewer.