Fix i386
This commit is contained in:
parent
8e5303ed7a
commit
e5b039b3c9
@ -111,7 +111,7 @@ func loadConfig() error {
|
||||
return err
|
||||
}
|
||||
|
||||
Configs.I386List, err = loadI386List()
|
||||
config.I386List, err = loadI386List()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ type SourcePackage struct {
|
||||
|
||||
type SourcePackageDTO struct {
|
||||
Name string `gorm:"primarykey"`
|
||||
|
||||
Has32bit bool
|
||||
Packages []PackageInfo `gorm:"foreignKey:PackageName"`
|
||||
}
|
||||
|
||||
|
@ -90,17 +90,23 @@ func ProcessPackages() error {
|
||||
|
||||
updatedPackages.ForEach(func(k string, v domain.SourcePackage) bool {
|
||||
for _, pkg := range config.Configs.I386List {
|
||||
if v.Name == pkg {
|
||||
if v.Name == pkg || v.Name == pkg+"-dmo" {
|
||||
v.Has32bit = true
|
||||
updatedPackages.Set(k, v)
|
||||
return true
|
||||
}
|
||||
}
|
||||
v.Has32bit = false
|
||||
updatedPackages.Set(k, v)
|
||||
return true
|
||||
})
|
||||
|
||||
for _, pkg := range config.Configs.I386List {
|
||||
if _, ok := updatedPackages.Get(pkg); !ok {
|
||||
_, ok := updatedPackages.Get(pkg + "-dmo")
|
||||
if ok {
|
||||
continue
|
||||
}
|
||||
updatedPackages.Set(pkg, domain.SourcePackage{
|
||||
Name: pkg,
|
||||
Has32bit: true,
|
||||
|
@ -55,7 +55,7 @@ func runServer(ctx context.Context) error {
|
||||
slog.Info("packages loaded in " + time.Since(start).String())
|
||||
|
||||
buildqueue.StartPackageQueueWorker(ctx)
|
||||
buildqueue.StartQueueAndStatusWorker(ctx)
|
||||
// buildqueue.StartQueueAndStatusWorker(ctx)
|
||||
|
||||
cfg := fiber.Config{
|
||||
JSONEncoder: json.Marshal,
|
||||
|
Loading…
Reference in New Issue
Block a user