Port index changes to parallel sort

This commit is contained in:
2025-07-10 21:51:30 +10:00
parent 6ea612f9fc
commit c89a6b92e6
5 changed files with 114 additions and 129 deletions

View File

@ -1,5 +1,5 @@
/*
* darwin-apk © 2024 Gay Pizza Specifications
* darwin-apk © 2024, 2025 Gay Pizza Specifications
* SPDX-License-Identifier: Apache-2.0
*/
@ -92,3 +92,14 @@ extension ApkVersionSpecification.Operator: CustomStringConvertible {
}
}
}
extension ApkVersionSpecification: CustomStringConvertible {
var description: String {
switch self {
case .any(invert: false): "depend=any"
case .any(invert: true): "conflict=any"
case .constraint(invert: false, let op, let version): "depend\(op)\(version)"
case .constraint(invert: true, let op, let version): "conflict\(op)\(version)"
}
}
}