Commit 981ab941 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b32e5600
......@@ -104,7 +104,7 @@ func catobjMain(argv []string) {
flags.Usage()
prog.Exit(2)
}
storUrl := argv[0]
zurl := argv[0]
if hashOnly && raw {
prog.Fatal("-hashonly & -raw are incompatible")
......@@ -126,7 +126,7 @@ func catobjMain(argv []string) {
ctx := context.Background()
stor, err := zodb.OpenStorage(ctx, storUrl, &zodb.OpenOptions{ReadOnly: true})
stor, err := zodb.OpenStorage(ctx, zurl, &zodb.OpenOptions{ReadOnly: true})
if err != nil {
prog.Fatal(err)
}
......
......@@ -258,7 +258,7 @@ func dumpMain(argv []string) {
flags.Usage()
prog.Exit(2)
}
storUrl := argv[0]
zurl := argv[0]
if len(argv) > 1 {
tidRange = argv[1]
......@@ -271,7 +271,7 @@ func dumpMain(argv []string) {
ctx := context.Background()
stor, err := zodb.OpenStorage(ctx, storUrl, &zodb.OpenOptions{ReadOnly: true})
stor, err := zodb.OpenStorage(ctx, zurl, &zodb.OpenOptions{ReadOnly: true})
if err != nil {
prog.Fatal(err)
}
......
......@@ -118,11 +118,11 @@ func infoMain(argv []string) {
flags.Usage()
prog.Exit(2)
}
storUrl := argv[0]
zurl := argv[0]
ctx := context.Background()
stor, err := zodb.OpenStorage(ctx, storUrl, &zodb.OpenOptions{ReadOnly: true})
stor, err := zodb.OpenStorage(ctx, zurl, &zodb.OpenOptions{ReadOnly: true})
if err != nil {
prog.Fatal(err)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment