Skip to content

Commit

Permalink
feat(backend): parse db's file list for soNames / refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 7, 2024
1 parent 7a47b9c commit 5cf5e2a
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 112 deletions.
4 changes: 2 additions & 2 deletions backend/src/builder/builder.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type Repository,
} from "typeorm";
import { BuildStatus } from "../types";
import { NamcapAnalysis, RepoStatus } from "../interfaces/repo-manager";
import { NamcapAnalysis, ParsedPackageMetadata, RepoStatus } from "../interfaces/repo-manager";

@Entity()
export class Builder {
Expand Down Expand Up @@ -59,7 +59,7 @@ export class Package {
bumpTriggers: { pkgname: string; archVersion: string }[];

@Column({ type: "jsonb", nullable: true })
metadata: string;
metadata: ParsedPackageMetadata;

@Column({ type: "int", nullable: true })
pkgrel: number;
Expand Down
3 changes: 2 additions & 1 deletion backend/src/interfaces/repo-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ export interface ParsedPackageMetadata {
checkDepends?: string[];
conflicts?: string[];
deps?: string[];
desc?: string;
filename: string;
license?: string;
makeDeps?: string[];
optDeps?: string[];
packager?: string;
desc?: string;
provides?: string[];
replaces?: string[];
soNameList?: string[];
url?: string;
}

Expand Down
Loading

0 comments on commit 5cf5e2a

Please sign in to comment.