Skip to content

Commit

Permalink
Patched wrong strip behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Nov 20, 2024
1 parent 17300e4 commit 8df87d8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions ISM/Software.cr
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ module ISM
end
end

def stripFile(filePath = String.new)
#No exit process because if the file can't be strip, we can just go next)
process = Process.run("strip --strip-unneeded #{filePath}", shell: true)
end

def fileUpdateContent(path : String, data : String)
requestedCommands = <<-CMD
grep -q '#{data}' '#{path}' || echo "#{data}" >> '#{path}'
Expand Down Expand Up @@ -1172,13 +1177,6 @@ module ISM
end
end

def stripFile(filePath = String.new)
requestedCommands = "strip --strip-unneeded #{filePath}"

#No exit process because if the file can't be strip, we can just go next)
process = Ism.runSystemCommand(requestedCommands, quiet: true)
end

def runZicCommand(arguments : String, path = String.new)
requestedCommands = "zic #{arguments}"

Expand Down Expand Up @@ -1351,7 +1349,6 @@ module ISM
return directoryNumber, symlinkNumber, fileNumber, totalSize
end

#Add stripping capability
def install(preserveLibtoolArchives = false)
Ism.recordSystemCall(command: "#{{% @def.receiver %}}.#{{% @def.name %}}")

Expand Down

0 comments on commit 8df87d8

Please sign in to comment.