From 269716d7d7ba756b0adec1336ed37ac7af1bc1ba Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 13 Apr 2022 12:03:28 -0600 Subject: [PATCH] revert(#12877): chore: print error if install-deps is used != ubuntu (#13536) Reason: turns out Debian Buster requires just one source list to install `ttf-ubuntu-font-family` font. All other dependencies are satisfied. Fixes #13530 --- packages/playwright-core/src/server/registry/dependencies.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/playwright-core/src/server/registry/dependencies.ts b/packages/playwright-core/src/server/registry/dependencies.ts index 8c55e5da53a14..1891b870ac395 100644 --- a/packages/playwright-core/src/server/registry/dependencies.ts +++ b/packages/playwright-core/src/server/registry/dependencies.ts @@ -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'); @@ -75,8 +74,6 @@ export async function installDependenciesWindows(targets: Set, } export async function installDependenciesLinux(targets: Set, 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];