aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-28 00:00:35 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-28 00:00:39 +0200
commit56653efe99c699f93c123f07c39bc7e6ccd8c3eb (patch)
tree87b6bb4bbb5bb272e2292079b21e0388e64fcca6 /skate/cmd
parent83e6e6576294f0eb0416d7e6d852c7d7fa219a35 (diff)
downloadrefcat-56653efe99c699f93c123f07c39bc7e6ccd8c3eb.tar.gz
refcat-56653efe99c699f93c123f07c39bc7e6ccd8c3eb.zip
include OL work id
Diffstat (limited to 'skate/cmd')
-rw-r--r--skate/cmd/skate-conv/main.go9
-rw-r--r--skate/cmd/skate-reduce/main.go2
2 files changed, 3 insertions, 8 deletions
diff --git a/skate/cmd/skate-conv/main.go b/skate/cmd/skate-conv/main.go
index 850d0d5..f861cd0 100644
--- a/skate/cmd/skate-conv/main.go
+++ b/skate/cmd/skate-conv/main.go
@@ -46,13 +46,8 @@ func main() {
case "oled":
f = openLibraryEditionToRelease
if *extraOpenLibraryAuthorMapping != "" {
- log.Printf("loading author mapping ...")
- f, err := os.Open(*extraOpenLibraryAuthorMapping)
- if err != nil {
- log.Fatal(err)
- }
- defer f.Close()
- m, err := xio.TabsToMap(f, "\t", 1, 2)
+ log.Printf("loading author mapping from %v ...", *extraOpenLibraryAuthorMapping)
+ m, err := xio.TabsToMapFile(*extraOpenLibraryAuthorMapping, "\t", 1, 2)
if err != nil {
log.Fatal(err)
}
diff --git a/skate/cmd/skate-reduce/main.go b/skate/cmd/skate-reduce/main.go
index 3cd15c8..74053ef 100644
--- a/skate/cmd/skate-reduce/main.go
+++ b/skate/cmd/skate-reduce/main.go
@@ -143,7 +143,7 @@ func main() {
log.Fatal(err)
}
// XXX: This is broken.
- if err := skate.ZippyVerifyRefsOnly(o, f, bw); err != nil {
+ if err := skate.ZippyVerifyRefsOpenLibrary(o, f, bw); err != nil {
log.Fatal(err)
}
default: