Skip to content

Commit

Permalink
Dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eneko committed Jul 5, 2019
1 parent c46f61d commit cf4cb40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
13 changes: 11 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
{
"object": {
"pins": [
{
"package": "llbuild",
"repositoryURL": "https://github.com/apple/swift-llbuild.git",
"state": {
"branch": null,
"revision": "f1c9ad9a253cdf1aa89a7f5c99c30b4513b06ddb",
"version": "0.1.1"
}
},
{
"package": "SwiftPM",
"repositoryURL": "https://github.com/apple/swift-package-manager.git",
"state": {
"branch": null,
"revision": "6983434787dec4e543e9d398a0a9acf63ccd4da1",
"version": "0.2.1"
"revision": "8656a25cb906c1896339f950ac960ee1b4fe8034",
"version": "0.4.0"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-package-manager.git", from: "0.1.0"),
],
targets: [
.target(name: "System", dependencies: ["Utility"]),
.target(name: "System", dependencies: ["SwiftPM"]),
.testTarget(name: "SystemTests", dependencies: ["System"]),
]
)
3 changes: 2 additions & 1 deletion Sources/System/System.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import Basic
/// - Throws: `SystemError.waitpid` if process execution failed.
@discardableResult
public func system(command: [String], captureOutput: Bool = false) throws -> ProcessResult {
let process = Basic.Process(arguments: command, redirectOutput: captureOutput)
let redirection: Basic.Process.OutputRedirection = captureOutput ? .collect : .none
let process = Basic.Process(arguments: command, outputRedirection: redirection)
try process.launch()
let result = try process.waitUntilExit()
return result
Expand Down

0 comments on commit cf4cb40

Please sign in to comment.