Initial implementation of APKINDEX, fetching, reading, parsing, & merging

This commit is contained in:
2024-11-08 21:22:33 +11:00
parent f6cbddb608
commit 941dfae317
18 changed files with 877 additions and 65 deletions

View File

@ -0,0 +1,18 @@
// SPDX-License-Identifier: Apache-2.0
import Foundation
import ArgumentParser
import darwin_apk
struct DpkUpdateCommand: ParsableCommand {
static let configuration = CommandConfiguration(
commandName: "update",
abstract: "Update the system package repositories.",
aliases: [ "u" ])
func run() throws {
print("Updating package repositories")
var updater = ApkIndexUpdater()
updater.update()
}
}