diff --git a/config_dist.yaml b/config_dist.yaml
index e50b40d..627e514 100644
--- a/config_dist.yaml
+++ b/config_dist.yaml
@@ -39,15 +39,5 @@ build:
worker: 4
makej: 8
-status:
- class:
- skipped: "secondary"
- queued: "warning"
- latest: "primary"
- failed: "danger"
- signing: "success"
- building: "info"
- unknown: "dark"
-
logging:
level: INFO
\ No newline at end of file
diff --git a/main.go b/main.go
index 76bca0b..222063a 100644
--- a/main.go
+++ b/main.go
@@ -20,7 +20,6 @@ import (
"os/exec"
"os/signal"
"path/filepath"
- "regexp"
"runtime"
"strconv"
"strings"
@@ -33,9 +32,6 @@ var (
conf *Conf
repos []string
alpmHandle *alpm.Handle
- reMarch = regexp.MustCompile(`(-march=)(.+?) `)
- rePkgRel = regexp.MustCompile(`(?m)^pkgrel\s*=\s*(.+)$`)
- rePkgFile = regexp.MustCompile(`^(.*)-.*-.*-(?:x86_64|any)\.pkg\.tar\.zst(?:\.sig)*$`)
buildManager *BuildManager
db *ent.Client
journalLog = flag.Bool("journal", false, "Log to systemd journal instead of stdout")
@@ -348,12 +344,11 @@ func (b *BuildManager) htmlWorker() {
pkgs := db.DbPackage.Query().Order(ent.Asc(dbpackage.FieldPkgbase)).Where(dbpackage.MarchEQ(march), dbpackage.RepositoryEQ(dbpackage.Repository(repo))).AllX(context.Background())
for _, pkg := range pkgs {
- status, class := statusId2string(pkg.Status)
addPkg := Pkg{
Pkgbase: pkg.Pkgbase,
- Status: status,
- Class: class,
+ Status: strings.ToUpper(pkg.Status.String()),
+ Class: pkg.Status.String(),
Skip: pkg.SkipReason,
Version: pkg.RepoVersion,
Svn2GitVersion: pkg.Version,
diff --git a/tpl/packages.html b/tpl/packages.html
index 7e29c42..0ef321e 100644
--- a/tpl/packages.html
+++ b/tpl/packages.html
@@ -16,8 +16,34 @@
ALHP Status
+
+
-
+