aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
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: