mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Allow database to be initialized without opening, unify all the open paths to retry on failure. In API router make sure open requests are matched with acks in explicit way. This also enables re-open attempts in all the aptly commands, so it should make running aptly CLI much easier now hopefully. Fix up system tests for oldoldstable ;)
26 lines
359 B
Go
26 lines
359 B
Go
package main
|
|
|
|
import (
|
|
"math/rand"
|
|
"os"
|
|
"time"
|
|
|
|
"github.com/smira/aptly/aptly"
|
|
"github.com/smira/aptly/cmd"
|
|
)
|
|
|
|
// Version variable, filled in at link time
|
|
var Version string
|
|
|
|
func main() {
|
|
if Version == "" {
|
|
Version = "unknown"
|
|
}
|
|
|
|
aptly.Version = Version
|
|
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
os.Exit(cmd.Run(cmd.RootCommand(), os.Args[1:], true))
|
|
}
|