fix build in debian buster
This commit is contained in:
		| @@ -248,18 +248,18 @@ case $mode in | ||||
|             docker exec ${DOCKER_ID} update-locale LANG=${LANG} | ||||
|         fi | ||||
|         OPTIONS='-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y --force-yes --no-install-suggests --no-install-recommends' | ||||
|         PREVENT='libpam-systemd- policykit*- colord-' | ||||
|         for f in 'libpam-systemd' 'policykit*' 'colord'; do | ||||
|             docker exec ${DOCKER_ID} bash -c "echo 'Package: $f' >> /etc/apt/preferences" | ||||
|         PREVENT='libpam-systemd policykit.* colord dconf-service' | ||||
|         for f in ${PREVENT}; do | ||||
|             docker exec ${DOCKER_ID} bash -c "echo 'Package: ${f}' >> /etc/apt/preferences" | ||||
|             docker exec ${DOCKER_ID} bash -c "echo 'Pin-Priority: -100' >> /etc/apt/preferences" | ||||
|             docker exec ${DOCKER_ID} bash -c "echo >> /etc/apt/preferences" | ||||
|         done | ||||
|         docker exec ${DOCKER_ID} apt-get update ${OPTIONS} | ||||
|         docker exec ${DOCKER_ID} apt-mark hold 'libpam-systemd' 'policykit*' 'colord' | ||||
|         docker exec ${DOCKER_ID} apt-mark hold ${PREVENT} | ||||
|         docker exec ${DOCKER_ID} apt-get upgrade ${OPTIONS} | ||||
|         docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT} python-software-properties software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ | ||||
|             docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT} software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ | ||||
|             docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT} python-software-properties apt-transport-https dpkg-dev lsb-release wget; | ||||
|         docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT// /- }- python-software-properties software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ | ||||
|             docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT// /- }- software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ | ||||
|             docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT// /- }- python-software-properties apt-transport-https dpkg-dev lsb-release wget; | ||||
|         for key in "${keys[@]}"; do | ||||
|             wget -O- "$key" \ | ||||
|                 | docker exec -i ${DOCKER_ID} apt-key add - | ||||
| @@ -267,6 +267,9 @@ case $mode in | ||||
|         for repo in "${repos[@]}"; do | ||||
|             ifthenelse "${repo}" "apt-add-repository 'ARG'" | ||||
|         done | ||||
|  | ||||
|  | ||||
|  | ||||
|         docker exec ${DOCKER_ID} apt-get update ${OPTIONS} | ||||
|         for package in "${packages[@]}"; do | ||||
|             ifthenelse "${package}" "apt-get install ${OPTIONS} ${PREVENT} ARG" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user