Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
6732640068 | |
|
ac02bbc094 | |
|
cd75bd9f61 | |
|
e9e318c4b2 | |
|
b984a53aac |
14
doDebian.go
14
doDebian.go
|
@ -23,6 +23,9 @@ func buildDeb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var counter int
|
var counter int
|
||||||
|
if int(argv.Max) == 0 {
|
||||||
|
argv.Max = 50
|
||||||
|
}
|
||||||
|
|
||||||
all := me.forge.Repos.SortByFullPath()
|
all := me.forge.Repos.SortByFullPath()
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
|
@ -45,12 +48,12 @@ func buildDeb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if argv.Release {
|
if argv.Release {
|
||||||
cmd = []string{"go-deb", "--release", "--forge", check.GetGoPath(), "--dir", outdir}
|
cmd = []string{"go-deb", "--release", "--dir", outdir}
|
||||||
} else {
|
} else {
|
||||||
cmd = []string{"go-deb", "--forge", check.GetGoPath(), "--dir", outdir}
|
cmd = []string{"go-deb", "--dir", outdir}
|
||||||
}
|
}
|
||||||
if me.forge.Config.IsPrivate(check.GetGoPath()) {
|
if me.forge.Config.IsPrivate(check.GetGoPath()) {
|
||||||
cmd = []string{"go-deb", "--forge", check.GetGoPath(), "--dir", outdir}
|
cmd = []string{"go-deb", "--dir", outdir}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,10 +76,6 @@ func buildDeb() {
|
||||||
|
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
if int(argv.Max) == 0 {
|
|
||||||
argv.Max = 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if counter > int(argv.Max) {
|
if counter > int(argv.Max) {
|
||||||
log.Info("did --max builds", argv.Max)
|
log.Info("did --max builds", argv.Max)
|
||||||
okExit("")
|
okExit("")
|
||||||
|
@ -108,6 +107,7 @@ func buildDeb() {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if err := check.RunVerbose(cmd); err != nil {
|
if err := check.RunVerbose(cmd); err != nil {
|
||||||
|
log.Info(check.FullPath, cmd)
|
||||||
failed[check] = fmt.Sprint("godeb failed", cmd, "with", err)
|
failed[check] = fmt.Sprint("godeb failed", cmd, "with", err)
|
||||||
badExit(err)
|
badExit(err)
|
||||||
} else {
|
} else {
|
||||||
|
|
9
main.go
9
main.go
|
@ -41,14 +41,9 @@ func main() {
|
||||||
state = make(map[*gitpb.Repo]string)
|
state = make(map[*gitpb.Repo]string)
|
||||||
debnames = make(map[*gitpb.Repo]string)
|
debnames = make(map[*gitpb.Repo]string)
|
||||||
|
|
||||||
// load the ~/.config/forge/ config
|
|
||||||
me.forge = forgepb.Init()
|
me.forge = forgepb.Init()
|
||||||
|
|
||||||
me.machine = new(zoopb.Machine)
|
me.machine, _ = zoopb.InitMachine()
|
||||||
if err := me.machine.ConfigLoad(); err != nil {
|
|
||||||
log.Info("zoopb.ConfigLoad() failed", err)
|
|
||||||
}
|
|
||||||
me.machine.InitWit()
|
|
||||||
|
|
||||||
if argv.Clone != nil {
|
if argv.Clone != nil {
|
||||||
if argv.RepoMap != "" {
|
if argv.RepoMap != "" {
|
||||||
|
@ -139,7 +134,7 @@ func okExit(thing string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func badExit(err error) {
|
func badExit(err error) {
|
||||||
log.Info("go-clean failed: ", err, me.forge.GetGoSrc())
|
log.Info("go-clean failed: ", err, me.forge.Config.ReposDir)
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue