Spdk/test/common/config/pkgdep/swupd
Michal Berger 8cbef7c0dc pkgdep/swupd: Don't try to install tsocks on clearlinux
Due to a typo from c7d1abba18 the installation was being skipped
regardless. Also, according to:

https://docs.01.org/clearlinux/latest/reference/bundles/bundles.html

"tsocks" package is not available in the clearlinux bundles hence
there's no need to waste cycles on trying to install it at all.

Change-Id: I1edc877ed660e1262aaa1d5b308cf4f9e23daf8a
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4459
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Mellanox Build Bot
2020-10-08 13:11:00 +00:00

22 lines
306 B
Plaintext

package_manager=swupd
upgrade() {
sudo "$package_manager" update -y
}
install() {
(($#)) || return 0
sudo "$package_manager" bundle-add -y "$@"
}
packages=(
jq
)
pre_install() {
if [[ $INSTALL_TSOCKS == true ]]; then
"tsocks package not present in clearlinux, proxy may not be available"
fi
}