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
This commit is contained in:
Andrey Lushnikov 2022-04-13 12:03:28 -06:00 committed by GitHub
parent 9b8aceaa61
commit 269716d7d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<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];