Changeset View
Changeset View
Standalone View
Standalone View
Go/yabi/yabi.go
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | for err == nil { | ||||
| if h.Size == 0 { | if h.Size == 0 { | ||||
| h, err = files.Next() | h, err = files.Next() | ||||
| continue | continue | ||||
| } | } | ||||
| if h.Typeflag == tar.TypeDir { | if h.Typeflag == tar.TypeDir { | ||||
| h, err = files.Next() | h, err = files.Next() | ||||
| continue | continue | ||||
| } | } | ||||
| // ignore statically linked archives or debug symbols | // ignore statically linked archives, debug symbols and Guile 3.x JIT .go files compiled to native ELF-format | ||||
| if strings.HasSuffix(h.Name, ".o") ||strings.HasSuffix(h.Name, ".la") || strings.HasSuffix(h.Name, ".a") || strings.HasSuffix(h.Name, ".debug") || strings.HasSuffix(h.Name, ".debuginfo") { | if strings.HasSuffix(h.Name, ".o") ||strings.HasSuffix(h.Name, ".la") || strings.HasSuffix(h.Name, ".a") || strings.HasSuffix(h.Name, ".debug") || strings.HasSuffix(h.Name, ".debuginfo") || strings.HasSuffix(h.Name, ".go") { | ||||
| h, err = files.Next() | h, err = files.Next() | ||||
| continue | continue | ||||
| } | } | ||||
| var raw []byte | var raw []byte | ||||
| if raw, err = ioutil.ReadAll(files); err != nil { | if raw, err = ioutil.ReadAll(files); err != nil { | ||||
| tarFile.Close() | tarFile.Close() | ||||
| log.Fatalf("Failed to read file '%s', reason: %s\n", h.Name, err) | log.Fatalf("Failed to read file '%s', reason: %s\n", h.Name, err) | ||||
| } | } | ||||
| Show All 40 Lines | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.