Skip to content

Commit e2b5a2a

Browse files
committed
add exclude list for extended header "files"
1 parent 2ea2c2a commit e2b5a2a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tools/download.go

+14
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,23 @@ func findTool(name, version string, data index) tool {
209209
return correctTool
210210
}
211211

212+
func stringInSlice(str string, list []string) bool {
213+
for _, v := range list {
214+
if v == str {
215+
return true
216+
}
217+
}
218+
return false
219+
}
220+
212221
func findBaseDir(dirList []string) string {
213222
baseDir := ""
223+
// https://github.com/backdrop-ops/contrib/issues/55#issuecomment-73814500
224+
dontdiff := []string{"pax_global_header"}
214225
for index, _ := range dirList {
226+
if stringInSlice(dirList[index], dontdiff) {
227+
continue
228+
}
215229
candidateBaseDir := dirList[index]
216230
for i := index; i < len(dirList); i++ {
217231
if !strings.Contains(dirList[i], candidateBaseDir) {

0 commit comments

Comments
 (0)