@@ -74,7 +74,7 @@ internal class ScanController(
74
74
/* *
75
75
* A map of [KnownProvenance]s to their resolved [NestedProvenance]s.
76
76
*/
77
- private val nestedProvenances = mutableMapOf<KnownProvenance , NestedProvenance >()
77
+ private val nestedProvenances = mutableMapOf<RemoteProvenance , NestedProvenance >()
78
78
79
79
/* *
80
80
* A map of package [Identifier]s to their resolved [KnownProvenance]s. These provenances are used to filter the
@@ -86,7 +86,7 @@ internal class ScanController(
86
86
* A map of package [Identifier]s to their resolved [KnownProvenance]s with the VCS path removed. These provenances
87
87
* are used during scanning to make sure that always the full repositories are scanned.
88
88
*/
89
- private val packageProvenancesWithoutVcsPath = mutableMapOf<Identifier , KnownProvenance >()
89
+ private val packageProvenancesWithoutVcsPath = mutableMapOf<Identifier , RemoteProvenance >()
90
90
91
91
/* *
92
92
* The [ScanResult]s for each [KnownProvenance] and [ScannerWrapper].
@@ -143,7 +143,7 @@ internal class ScanController(
143
143
* Set the [nestedProvenance] corresponding to the given [package provenance][root], overwriting any existing
144
144
* values.
145
145
*/
146
- fun putNestedProvenance (root : KnownProvenance , nestedProvenance : NestedProvenance ) {
146
+ fun putNestedProvenance (root : RemoteProvenance , nestedProvenance : NestedProvenance ) {
147
147
nestedProvenances[root] = nestedProvenance
148
148
}
149
149
@@ -166,7 +166,7 @@ internal class ScanController(
166
166
/* *
167
167
* Return all [KnownProvenance]s contained in [nestedProvenances].
168
168
*/
169
- fun getAllProvenances (): Set <KnownProvenance > =
169
+ fun getAllProvenances (): Set <RemoteProvenance > =
170
170
nestedProvenances.values.flatMapTo(mutableSetOf ()) { it.allProvenances }
171
171
172
172
/* *
@@ -178,7 +178,7 @@ internal class ScanController(
178
178
/* *
179
179
* Return all provenances including sub-repositories associated with the identifiers of the packages they belong to.
180
180
*/
181
- fun getIdsByProvenance (): Map <KnownProvenance , Set <Identifier >> =
181
+ fun getIdsByProvenance (): Map <RemoteProvenance , Set <Identifier >> =
182
182
buildMap<_ , MutableSet <Identifier >> {
183
183
getNestedProvenancesByPackage().forEach { (pkg, nestedProvenance) ->
184
184
nestedProvenance.allProvenances.forEach { provenance ->
@@ -273,7 +273,7 @@ internal class ScanController(
273
273
/* *
274
274
* Return all [KnownProvenance]s for the [packages] with the VCS path removed.
275
275
*/
276
- fun getPackageProvenancesWithoutVcsPath (): Set <KnownProvenance > = packageProvenancesWithoutVcsPath.values.toSet()
276
+ fun getPackageProvenancesWithoutVcsPath (): Set <RemoteProvenance > = packageProvenancesWithoutVcsPath.values.toSet()
277
277
278
278
/* *
279
279
* Return all [PackageScannerWrapper]s.
0 commit comments