Skip to content

Commit

Permalink
Improve logging when extracting deb files
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Jan 8, 2025
1 parent 63482fa commit f6e812b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ extension SwiftSDKGenerator {
report(downloadedFiles: downloadedFiles)

for fileName in urls.map(\.lastPathComponent) {
print("Extracting \(fileName)...")
try await fs.unpack(file: tmpDir.appending(fileName), into: sdkDirPath)
}
}
Expand Down
4 changes: 3 additions & 1 deletion Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ public actor SwiftSDKGenerator {
let isVerbose = self.isVerbose
try await self.inTemporaryDirectory { _, tmp in
try await Shell.run(#"cd "\#(tmp)" && ar -x "\#(debFile)""#, shouldLogCommands: isVerbose)
try await print(Shell.readStdout("ls \(tmp)"))
if isVerbose {
try await print(Shell.readStdout("ls \(tmp)"))
}

try await Shell.run(
#"tar -C "\#(directoryPath)" -xf "\#(tmp)"/data.tar.*"#,
Expand Down

0 comments on commit f6e812b

Please sign in to comment.