mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 21:41:31 +00:00
decode index checksum too cus why not
also dumps prettier package descriptions to a file now wahoo I have good priorities
This commit is contained in:
@ -42,13 +42,10 @@ public struct ApkIndexUpdater {
|
||||
do {
|
||||
let tables = try repositories.map { try readIndex(URL(filePath: $0.localName)) }
|
||||
index = ApkIndex.merge(tables)
|
||||
try index.description.write(to: URL(fileURLWithPath: "packages.txt"), atomically: false, encoding: .utf8)
|
||||
} catch {
|
||||
fatalError(error.localizedDescription)
|
||||
}
|
||||
|
||||
for package in index.packages {
|
||||
print("\(package.name):", package.dependencies)
|
||||
}
|
||||
}
|
||||
|
||||
private func readIndex(_ indexURL: URL) throws -> ApkIndex {
|
||||
|
Reference in New Issue
Block a user