diff --git a/src/LCT.PackageIdentifier/ConanProcessor.cs b/src/LCT.PackageIdentifier/ConanProcessor.cs index 63953d19..8cdd662f 100644 --- a/src/LCT.PackageIdentifier/ConanProcessor.cs +++ b/src/LCT.PackageIdentifier/ConanProcessor.cs @@ -126,8 +126,9 @@ public async Task> GetJfrogRepoDetailsOfAComponent(List x.Name == jfrogpackageName); + string jfrogpackageName = $"{component.Name}/{component.Version}"; + Logger.Debug($"Repo Name for the package {jfrogpackageName} is {repoName}"); + var hashes = aqlResultList.FirstOrDefault(x => x.Path.Contains(jfrogpackageName, StringComparison.OrdinalIgnoreCase)); Property artifactoryrepo = new() { Name = Dataconstant.Cdx_ArtifactoryRepoUrl, Value = repoName }; Component componentVal = component; diff --git a/src/LCT.PackageIdentifier/DebianProcessor.cs b/src/LCT.PackageIdentifier/DebianProcessor.cs index 3afca150..eaa2e19d 100644 --- a/src/LCT.PackageIdentifier/DebianProcessor.cs +++ b/src/LCT.PackageIdentifier/DebianProcessor.cs @@ -105,8 +105,11 @@ public async Task> GetJfrogRepoDetailsOfAComponent(List x.Name == jfrogpackageName); + string jfrogpackageName = $"{component.Name}_{component.Version}"; + Logger.Debug($"Repo Name for the package {jfrogpackageName} is {repoName}"); + var hashes = aqlResultList.FirstOrDefault(x => x.Name.Contains( + jfrogpackageName, StringComparison.OrdinalIgnoreCase)); + Property artifactoryrepo = new() { Name = Dataconstant.Cdx_ArtifactoryRepoUrl, Value = repoName }; Component componentVal = component; @@ -207,7 +210,7 @@ private static string GetArtifactoryRepoName(List aqlResultList, Comp jfrogcomponentName, StringComparison.OrdinalIgnoreCase)); string repoName = CommonIdentiferHelper.GetRepodetailsFromPerticularOrder(aqlResults); - + Logger.Debug($"Repo Name for the package {jfrogcomponentName} is {repoName}"); string fullName = bomHelper.GetFullNameOfComponent(component); string fullNameVersion = $"{fullName}";