nm.IndexFile skip err

This commit is contained in:
xushiwei
2024-05-09 12:08:19 +08:00
parent 329f65a1ad
commit 1800c52c04

View File

@@ -78,8 +78,10 @@ func (p *IndexBuilder) IndexDir(fromDir, toDir string, progress func(path string
func (p *IndexBuilder) IndexFile(arFile, outFile string) (err error) { func (p *IndexBuilder) IndexFile(arFile, outFile string) (err error) {
items, err := p.nm.List(arFile) items, err := p.nm.List(arFile)
if err != nil { if err != nil {
if len(items) == 0 {
return return
} }
}
var b bytes.Buffer var b bytes.Buffer
b.WriteString("nm ") b.WriteString("nm ")
b.WriteString(arFile) b.WriteString(arFile)