Merge "Do not use libvirt-bin package anymore"

This commit is contained in:
Jenkins 2017-04-07 00:37:36 +00:00 committed by Gerrit Code Review
commit 03fbc0d71b
3 changed files with 23 additions and 2 deletions

View File

@ -10,7 +10,9 @@ iputils-arping
kpartx kpartx
libjs-jquery-tablesorter # Needed for coverage html reports libjs-jquery-tablesorter # Needed for coverage html reports
libmysqlclient-dev libmysqlclient-dev
libvirt-bin # NOPRIME libvirt-bin # dist:xenial NOPRIME
libvirt-clients # not:xenial NOPRIME
libvirt-daemon-system # not:xenial NOPRIME
libvirt-dev # NOPRIME libvirt-dev # NOPRIME
mysql-server # NOPRIME mysql-server # NOPRIME
parted parted

View File

@ -1148,6 +1148,19 @@ function _parse_package_files {
fi fi
fi fi
# Look for # not:xxx in comment
if [[ $line =~ (.*)#.*not:([^ ]*) ]]; then
# We are using BASH regexp matching feature.
package=${BASH_REMATCH[1]}
distros=${BASH_REMATCH[2]}
# In bash ${VAR,,} will lowercase VAR
# Look for a match in the distro list
if [[ ${distros,,} =~ ${DISTRO,,} ]]; then
# If match then skip this package
inst_pkg=0
fi
fi
if [[ $inst_pkg = 1 ]]; then if [[ $inst_pkg = 1 ]]; then
echo $package echo $package
fi fi
@ -1166,6 +1179,8 @@ function _parse_package_files {
# - ``# NOPRIME`` defers installation to be performed later in `stack.sh` # - ``# NOPRIME`` defers installation to be performed later in `stack.sh`
# - ``# dist:DISTRO`` or ``dist:DISTRO1,DISTRO2`` limits the selection # - ``# dist:DISTRO`` or ``dist:DISTRO1,DISTRO2`` limits the selection
# of the package to the distros listed. The distro names are case insensitive. # of the package to the distros listed. The distro names are case insensitive.
# - ``# not:DISTRO`` or ``not:DISTRO1,DISTRO2`` limits the selection
# of the package to the distros not listed. The distro names are case insensitive.
function get_packages { function get_packages {
local xtrace local xtrace
xtrace=$(set +o | grep xtrace) xtrace=$(set +o | grep xtrace)

View File

@ -62,7 +62,11 @@ function install_libvirt {
if is_ubuntu; then if is_ubuntu; then
install_package qemu-system install_package qemu-system
install_package libvirt-bin libvirt-dev if [[ ${DISTRO} == "xenial" ]]; then
install_package libvirt-bin libvirt-dev
else
install_package libvirt-clients libvirt-daemon-system libvirt-dev
fi
pip_install_gr libvirt-python pip_install_gr libvirt-python
#pip_install_gr <there-si-no-guestfs-in-pypi> #pip_install_gr <there-si-no-guestfs-in-pypi>
elif is_fedora || is_suse; then elif is_fedora || is_suse; then