4 Star 18 Fork 184

Fengguang/lkp-tests

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
show-depends-packages 640 Bytes
一键复制 编辑 原始数据 按行查看 历史
Fengguang 提交于 2023-02-15 16:26 +08:00 . use /usr/bin/env bash
#!/usr/bin/env bash
# This script is used to get dependency packages for determined os distribution
# and output them.
# There are two sources to get these packages names:
# 1. $LKP_SRC/distro/depends/*, files here contain dependency packages names
# 2. $LKP_SRC/distro/adaptation/$distro, the $distro contains packages mapping
# from debian to other os, Default file is $1, if not found, get centos then.
show_packages()
{
local distro=$1
cat $LKP_SRC/distro/depends/* | adapt-packages $distro
}
# adaptation file contains packages mapping from debian to other os
distro=$1
[ -z "$distro" ] && distro="centos"
show_packages "$distro"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wu_fengguang/lkp-tests.git
git@gitee.com:wu_fengguang/lkp-tests.git
wu_fengguang
lkp-tests
lkp-tests
master

搜索帮助