Skip to content

Commit

Permalink
revert(microsoft#12877): chore: print error if install-deps is used !…
Browse files Browse the repository at this point in the history
…= ubuntu

Reason: turns out Debian Buster requires just one source list to
install `ttf-ubuntu-font-family` font.

All other dependencies are satisfied.

Fixes microsoft#13530
  • Loading branch information
aslushnikov committed Apr 13, 2022
1 parent 95d4041 commit a520cf0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/playwright-core/src/server/registry/dependencies.ts
Expand Up @@ -23,7 +23,6 @@ import { spawnAsync } from '../../utils/spawnAsync';
import { hostPlatform } from '../../utils/hostPlatform';
import { buildPlaywrightCLICommand } from '.';
import { deps } from './nativeDeps';
import { getUbuntuVersion } from '../../utils/ubuntuVersion';
import { getPlaywrightVersion } from '../../common/userAgent';

const BIN_DIRECTORY = path.join(__dirname, '..', '..', '..', 'bin');
Expand Down Expand Up @@ -75,8 +74,6 @@ export async function installDependenciesWindows(targets: Set<DependencyGroup>,
}

export async function installDependenciesLinux(targets: Set<DependencyGroup>, dryRun: boolean) {
if (await getUbuntuVersion() === '')
throw new Error(`Unsupported Linux distribution, only Ubuntu is supported!`);
const libraries: string[] = [];
for (const target of targets) {
const info = deps[hostPlatform];
Expand Down

0 comments on commit a520cf0

Please sign in to comment.