Skip to content

Commit

Permalink
Merge branch 'master' into feature_localfiles_publishstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
seeraven authored Apr 13, 2017
2 parents 06b2ea9 + ac475c0 commit 122b666
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions deb/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,17 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorageP
if err != nil {
return err
}
defer tempDB.Close()
defer tempDB.Drop()
defer func() {
var e error
e = tempDB.Close()
if e != nil && progress != nil {
progress.Printf("failed to close temp DB: %s", err)
}
e = tempDB.Drop()
if e != nil && progress != nil {
progress.Printf("failed to drop temp DB: %s", err)
}
}()

if progress != nil {
progress.Printf("Loading packages...\n")
Expand Down

0 comments on commit 122b666

Please sign in to comment.