forked from ALHP/ALHP.GO
removed batch-limits
This commit is contained in:
16
main.go
16
main.go
@@ -367,17 +367,6 @@ func (b *BuildManager) parseWorker() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
b.parseWG.Done()
|
b.parseWG.Done()
|
||||||
|
|
||||||
b.queuedLock.RLock()
|
|
||||||
if b.queued[pkg.March] >= conf.Build.Batch {
|
|
||||||
b.queuedLock.RUnlock()
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
b.queuedLock.RUnlock()
|
|
||||||
b.queuedLock.Lock()
|
|
||||||
b.queued[pkg.March]++
|
|
||||||
b.queuedLock.Unlock()
|
|
||||||
|
|
||||||
b.build[pkg.March] <- pkg
|
b.build[pkg.March] <- pkg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -663,11 +652,6 @@ func (b *BuildManager) syncWorker() {
|
|||||||
check(err)
|
check(err)
|
||||||
b.alpmMutex.Unlock()
|
b.alpmMutex.Unlock()
|
||||||
|
|
||||||
// clear batch limits
|
|
||||||
b.queuedLock.Lock()
|
|
||||||
b.queued = map[string]int{}
|
|
||||||
b.queuedLock.Unlock()
|
|
||||||
|
|
||||||
pkgBuilds, err := Glob(filepath.Join(conf.Basedir.Work, upstreamDir, "/**/PKGBUILD"))
|
pkgBuilds, err := Glob(filepath.Join(conf.Basedir.Work, upstreamDir, "/**/PKGBUILD"))
|
||||||
check(err)
|
check(err)
|
||||||
|
|
||||||
|
3
utils.go
3
utils.go
@@ -73,8 +73,6 @@ type BuildManager struct {
|
|||||||
buildProcesses []*os.Process
|
buildProcesses []*os.Process
|
||||||
buildProcMutex sync.RWMutex
|
buildProcMutex sync.RWMutex
|
||||||
alpmMutex sync.RWMutex
|
alpmMutex sync.RWMutex
|
||||||
queued map[string]int
|
|
||||||
queuedLock sync.RWMutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Conf struct {
|
type Conf struct {
|
||||||
@@ -92,7 +90,6 @@ type Conf struct {
|
|||||||
Worker int
|
Worker int
|
||||||
Makej int
|
Makej int
|
||||||
Checks bool
|
Checks bool
|
||||||
Batch int
|
|
||||||
}
|
}
|
||||||
Logging struct {
|
Logging struct {
|
||||||
Level string
|
Level string
|
||||||
|
Reference in New Issue
Block a user