add gcc to all mirror checks, preventing issues like #111

This commit is contained in:
2022-05-11 17:06:08 +02:00
parent 85d46f4ab0
commit f190902b41

View File

@@ -748,6 +748,12 @@ func (p *ProtoPackage) isMirrorLatest(h *alpm.Handle) (bool, alpm.IPackage, stri
allDepends := p.Srcinfo.Depends allDepends := p.Srcinfo.Depends
allDepends = append(allDepends, p.Srcinfo.MakeDepends...) allDepends = append(allDepends, p.Srcinfo.MakeDepends...)
// add gcc to dependents, since we can't know for sure if its in use
// prevents issues like #111
allDepends = append(allDepends, srcinfo.ArchString{
Arch: "x86_64",
Value: "gcc",
})
for _, dep := range allDepends { for _, dep := range allDepends {
buildManager.alpmMutex.Lock() buildManager.alpmMutex.Lock()