From a8305d0094f87935d2d6422afa5dc7df9995ba8f Mon Sep 17 00:00:00 2001 From: "Ian A.Mason" Date: Tue, 22 Oct 2019 06:41:44 -0700 Subject: [PATCH] issue #31 plus continued race detection stuff, II. --- shared/extractor.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/extractor.go b/shared/extractor.go index 72407e3..15b3ddd 100644 --- a/shared/extractor.go +++ b/shared/extractor.go @@ -321,9 +321,9 @@ func listArchiveFiles(ea extractionArgs, inputFile string) (contents []string) { var arArgs []string arArgs = append(arArgs, "-t") arArgs = append(arArgs, inputFile) - output, err := runCmd("ar", arArgs) + output, err := runCmd(ea.ArchiverName, arArgs) if err != nil { - LogWarning("ar command: ar %v", arArgs) + LogWarning("ar command: %v %v", ea.ArchiverName, arArgs) LogFatal("Failed to extract contents from archive %s because: %v.\n", inputFile, err) } contents = strings.Split(output, "\n") @@ -344,9 +344,9 @@ func extractFile(ea extractionArgs, archive string, filename string, instance in } arArgs = append(arArgs, archive) arArgs = append(arArgs, filename) - _, err := runCmd("ar", arArgs) + _, err := runCmd(ea.ArchiverName, arArgs) if err != nil { - LogWarning("Failed to extract instance %v of %v from archive %s because: %v.\n", instance, filename, archive, err) + LogWarning("The archiver %v failed to extract instance %v of %v from archive %s because: %v.\n", ea.ArchiverName, instance, filename, archive, err) return false } return true