Skip to content

Commit

Permalink
Merge pull request #50 from potatoattack/master
Browse files Browse the repository at this point in the history
Enable reading from Zstd compressed databases
  • Loading branch information
cassava committed Dec 17, 2019
2 parents be1143c + 6b15ca4 commit 717a4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ func (c *Configuration) Init() error {

// Perform a check on database extension.
var extOk bool
for _, ext := range []string{".db.tar", ".db.tar.gz", ".db.tar.xz", ".db.tar.bz2"} {
for _, ext := range []string{".db.tar", ".db.tar.gz", ".db.tar.xz", ".db.tar.bz2", ".db.tar.zst"} {
if strings.HasSuffix(c.database, ext) {
extOk = true
break
}
}
if !extOk {
fmt.Fprintf(os.Stderr, "Warning: specified repository database %q has an unexpected extension.\n", c.database)
fmt.Fprintf(os.Stderr, "Should be one of \".db.tar\", \".db.tar.gz\", \".db.tar.xz\", or \"db.tar.bz2\".\n")
fmt.Fprintf(os.Stderr, "Should be one of \".db.tar\", \".db.tar.gz\", \".db.tar.xz\", \"db.tar.bz2\", or \"db.tar.zst\".\n")
}

return nil
Expand Down

0 comments on commit 717a4e1

Please sign in to comment.