Hash each PKGBUILD and compare before parsing, fixes #25

This will speed things up significantly. See #25 for more information and discussion.
This commit is contained in:
2021-08-30 11:02:06 +02:00
parent 1977181409
commit b78b09aeaa
12 changed files with 375 additions and 28 deletions

View File

@@ -29,6 +29,8 @@ const (
FieldBuildDuration = "build_duration"
// FieldUpdated holds the string denoting the updated field in the database.
FieldUpdated = "updated"
// FieldHash holds the string denoting the hash field in the database.
FieldHash = "hash"
// Table holds the table name of the dbpackage in the database.
Table = "db_packages"
)
@@ -47,6 +49,7 @@ var Columns = []string{
FieldBuildTime,
FieldBuildDuration,
FieldUpdated,
FieldHash,
}
// ValidColumn reports if the column name is valid (part of the table columns).