Skip to content

Commit

Permalink
changes for unoffical
Browse files Browse the repository at this point in the history
  • Loading branch information
malavikakrishnan123 committed Dec 19, 2024
1 parent 505c2a0 commit 52d4d6b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/LCT.PackageIdentifier/ConanProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
BomCreator.bomKpiData.ReleaseRepoComponents++;
}

if (artifactoryrepo.Value == Dataconstant.PackageNameNotFoundInJfrog || artifactoryrepo.Value == "")
if (artifactoryrepo.Value == Dataconstant.NotFoundInJFrog || artifactoryrepo.Value == "")
{
BomCreator.bomKpiData.UnofficialComponents++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/LCT.PackageIdentifier/DebianProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
BomCreator.bomKpiData.ReleaseRepoComponents++;
}

if (artifactoryrepo.Value == Dataconstant.PackageNameNotFoundInJfrog || artifactoryrepo.Value == "")
if (artifactoryrepo.Value == Dataconstant.NotFoundInJFrog || artifactoryrepo.Value == "")
{
BomCreator.bomKpiData.UnofficialComponents++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/LCT.PackageIdentifier/MavenProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
BomCreator.bomKpiData.ReleaseRepoComponents++;
}

if (artifactoryrepo.Value == Dataconstant.PackageNameNotFoundInJfrog || artifactoryrepo.Value == "")
if (artifactoryrepo.Value == Dataconstant.NotFoundInJFrog || artifactoryrepo.Value == "")
{
BomCreator.bomKpiData.UnofficialComponents++;
}
Expand Down
3 changes: 2 additions & 1 deletion src/LCT.PackageIdentifier/NpmProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
string jfrogRepoPath = string.Empty;
AqlResult finalRepoData = GetJfrogArtifactoryRepoDetials(aqlResultList, component, bomhelper, out jfrogRepoPath);
Property artifactoryrepo = new() { Name = Dataconstant.Cdx_ArtifactoryRepoName, Value = finalRepoData.Repo };

Property siemensfileNameProp = new() { Name = Dataconstant.Cdx_Siemensfilename, Value = finalRepoData?.Name ?? Dataconstant.PackageNameNotFoundInJfrog };
Property jfrogRepoPathProp = new() { Name = Dataconstant.Cdx_JfrogRepoPath, Value = jfrogRepoPath };
Component componentVal = component;
Expand All @@ -424,7 +425,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
BomCreator.bomKpiData.ReleaseRepoComponents++;
}

if (artifactoryrepo.Value == Dataconstant.PackageNameNotFoundInJfrog || artifactoryrepo.Value == "")
if (artifactoryrepo.Value == Dataconstant.NotFoundInJFrog || artifactoryrepo.Value == "")
{
BomCreator.bomKpiData.UnofficialComponents++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/LCT.PackageIdentifier/NugetProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
BomCreator.bomKpiData.ReleaseRepoComponents++;
}

if (artifactoryrepo.Value == Dataconstant.PackageNameNotFoundInJfrog || artifactoryrepo.Value == "")
if (artifactoryrepo.Value == Dataconstant.NotFoundInJFrog || artifactoryrepo.Value == "")
{
BomCreator.bomKpiData.UnofficialComponents++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/LCT.PackageIdentifier/PythonProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
BomCreator.bomKpiData.ReleaseRepoComponents++;
}

if (artifactoryrepo.Value == Dataconstant.PackageNameNotFoundInJfrog || artifactoryrepo.Value == "")
if (artifactoryrepo.Value == Dataconstant.NotFoundInJFrog || artifactoryrepo.Value == "")
{
BomCreator.bomKpiData.UnofficialComponents++;
}
Expand Down

0 comments on commit 52d4d6b

Please sign in to comment.