Close database before writing first byte to stdout. #117

Should fix conflict with commands like 'aptly xxx list -raw | xargs -n 1 aptly xxxx'
This commit is contained in:
Andrey Smirnov
2014-10-07 15:20:27 +04:00
parent 8a787d2c35
commit c8d9bef686
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ func aptlySnapshotList(cmd *commander.Command, args []string) error {
return nil
})
context.CloseDatabase()
sort.Sort(snapshotsToSort)
if raw {