minor fixes

This commit is contained in:
Giovanni Harting 2022-08-14 16:06:59 +02:00
parent f30442d100
commit 119aaa8110
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[Unit]
Description=Go based Archlinux instructionset enabled repo build manager.
Description=Go based Archlinux instruction-set enabled repo build manager.
After=network.target
[Service]

View File

@ -68,12 +68,12 @@ func (pkg Package) HasValidSignature() (bool, error) {
}
// DBPackage returns ent.DBPackage for package
func (pkg *Package) DBPackage(db *ent.Client) (*ent.DbPackage, error) {
func (pkg Package) DBPackage(db *ent.Client) (*ent.DbPackage, error) {
return pkg.DBPackageIsolated(pkg.MArch(), pkg.Repo(), db)
}
// DBPackageIsolated returns ent.DBPackage like DBPackage, but not relying on the path for march and repo
func (pkg *Package) DBPackageIsolated(march string, repo dbpackage.Repository, db *ent.Client) (*ent.DbPackage, error) {
func (pkg Package) DBPackageIsolated(march string, repo dbpackage.Repository, db *ent.Client) (*ent.DbPackage, error) {
dbPkg, err := db.DbPackage.Query().Where(func(s *sql.Selector) {
s.Where(
sql.And(