Housekeeping

This commit is contained in:
a_dinosaur committed 2024-11-23 18:21:15 +11:00
1 parent 2eea15fb90
commit d9f5052d21
4 files changed
+2 -6

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ public extension ApkIndex {
Self.init(packages: tables.flatMap(\.packages))
}
static func merge(_ tables: Self...) -> ApkIndex {
static func merge(_ tables: Self...) -> Self {
Self.init(packages: tables.flatMap(\.packages))
}
}
@@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
import Foundation
public struct ApkIndexDependency: Hashable, Sendable {
let requirement: ApkVersionRequirement
-3
View File
@@ -26,9 +26,6 @@ public struct ApkIndexPackage: Hashable, Sendable {
public var downloadFilename: String { "\(self.name)-\(version).apk" }
//TODO: Implementation
//lazy var semanticVersion: (Int, Int, Int) = (0, 0, 0)
init(name: String, version spec: ApkVersionSpecification) {
fatalError("Cannot construct an ApkIndexPackage this way")
}
+1
View File
@@ -4,6 +4,7 @@
*/
import Foundation
import Darwin
struct TextFileWriter: TextOutputStream {
private var _hnd: FileHandle