mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Temporarily disable db close/open cycle (to be addressed later)
This commit is contained in:
@@ -108,10 +108,10 @@ func aptlyMirrorUpdate(cmd *commander.Command, args []string) error {
|
||||
return fmt.Errorf("unable to update: %s", err)
|
||||
}
|
||||
|
||||
err = context.CloseDatabase()
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to update: %s", err)
|
||||
}
|
||||
// err = context.CloseDatabase()
|
||||
// if err != nil {
|
||||
// return fmt.Errorf("unable to update: %s", err)
|
||||
// }
|
||||
|
||||
// Catch ^C
|
||||
sigch := make(chan os.Signal)
|
||||
@@ -224,10 +224,10 @@ func aptlyMirrorUpdate(cmd *commander.Command, args []string) error {
|
||||
return fmt.Errorf("unable to update: download errors:\n %s", strings.Join(errors, "\n "))
|
||||
}
|
||||
|
||||
err = context.ReOpenDatabase()
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to update: %s", err)
|
||||
}
|
||||
// err = context.ReOpenDatabase()
|
||||
// if err != nil {
|
||||
// return fmt.Errorf("unable to update: %s", err)
|
||||
// }
|
||||
|
||||
repo.FinalizeDownload(context.CollectionFactory(), context.Progress())
|
||||
err = context.CollectionFactory().RemoteRepoCollection().Update(repo)
|
||||
|
||||
Reference in New Issue
Block a user