1
0
forked from ALHP/ALHP.GO

added separate hash for srcinfo cache

This commit is contained in:
2022-08-14 15:02:24 +02:00
parent 041e7762f7
commit f30442d100
11 changed files with 380 additions and 83 deletions

View File

@@ -715,7 +715,7 @@ func (p *ProtoPackage) genSrcinfo() error {
p.Srcinfo = info
if p.DbPackage != nil {
p.DbPackage = p.DbPackage.Update().SetSrcinfo(string(res)).SaveX(context.Background())
p.DbPackage = p.DbPackage.Update().SetSrcinfoHash(p.Hash).SetSrcinfo(string(res)).SaveX(context.Background())
}
return nil