Skip to content

Commit

Permalink
Add zst database extension
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoattack committed Dec 16, 2019
1 parent 967cf9d commit 6b15ca4
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 @@ -202,15 +202,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 6b15ca4

Please sign in to comment.