mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 11:20:07 +01:00
fedora/REQUIRED_PACKAGES: speed up optional packages installation
Don't try to install one by one by calling dnf repeatedly. It is slow. Instead, use --skip-broken option.
This commit is contained in:
parent
593608c604
commit
5409d4f5cd
1 changed files with 3 additions and 8 deletions
|
|
@ -25,12 +25,6 @@ install() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_ignore_missing() {
|
|
||||||
for p; do
|
|
||||||
install "$p" || :
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
if test "$NM_NO_EXTRA" != 1; then
|
if test "$NM_NO_EXTRA" != 1; then
|
||||||
# these packages are convenient for developing, but not necessary
|
# these packages are convenient for developing, but not necessary
|
||||||
# for CI testing.
|
# for CI testing.
|
||||||
|
|
@ -90,8 +84,9 @@ install \
|
||||||
which \
|
which \
|
||||||
#end
|
#end
|
||||||
|
|
||||||
# some packages don't exist in certain distributions. Install them one-by-one, and ignore errors.
|
# Some packages don't exist in certain distributions. Ignore errors
|
||||||
install_ignore_missing \
|
# installing them, but still drag them in when available.
|
||||||
|
install --skip-unavailable \
|
||||||
black \
|
black \
|
||||||
dbus-python \
|
dbus-python \
|
||||||
iproute-tc \
|
iproute-tc \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue