Skip to content

Commit

Permalink
Recognize deprecated/disabled casks
Browse files Browse the repository at this point in the history
Implemented upstream in Homebrew/brew#16292
  • Loading branch information
ThatsJustCheesy committed Dec 19, 2023
1 parent 3f59137 commit 6c4be35
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/renderer/ipc/package-managers/macOS/IPCBrewCask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export type BrewCaskPackageInfo = {
conflicts_with?: any; // TODO: Better typing
aliases?: string[];
outdated: boolean;
deprecated: boolean;
deprecation_date?: string | null;
deprecation_reason?: string | null;
disabled: boolean;
disable_date?: string | null;
disable_reason?: string | null;
artifacts: BrewCaskArtifact[];
installed_30d?: string | null; // TODO: Better typing
installed_90d?: string | null; // TODO: Better typing
Expand Down Expand Up @@ -118,11 +124,11 @@ export class BrewCaskPackageInfoAdapter
}

isPackageDeprecated(packageInfo: BrewCaskPackageInfo): boolean {
return false;
return packageInfo.deprecated;
}

isPackageDisabled(packageInfo: BrewCaskPackageInfo): boolean {
return false;
return packageInfo.disabled;
}

isPackageOvert(packageInfo: BrewCaskPackageInfo): boolean {
Expand Down

0 comments on commit 6c4be35

Please sign in to comment.