now packets can get LICENSE and pageurl from package table

This commit is contained in:
2025-11-04 19:15:29 -03:00
parent eb14177d7a
commit 3f370adda1
4 changed files with 38 additions and 26 deletions

View File

@@ -1,25 +0,0 @@
package packet
func (pkg PacketLua) IsValid() bool {
var a, b int
for _, v := range *pkg.Plataforms {
a += len(*v.Sources)
b += len(v.Architetures)
}
a += len(*pkg.GlobalSources)
if a < 1 || len(*pkg.Plataforms) > b {
return false
}
switch {
case pkg.Serial == -133:
return false
case pkg.Description == "" || pkg.Maintainer == "" || pkg.Name == "" || pkg.Version == "":
return false
}
return true
}