Merge "Revert "Make sure dnf won't autoremove packages that we explicitly installed""
This commit is contained in:
commit
fd8fae299e
@ -135,13 +135,6 @@ if [ -n "$WHITELIST" ]; then
|
|||||||
# [1] https://bugzilla.redhat.com/show_bug.cgi?id=965567
|
# [1] https://bugzilla.redhat.com/show_bug.cgi?id=965567
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
${YUM} -v -y $ACTION $EXTRA_ARGS $PKGS
|
${YUM} -v -y $ACTION $EXTRA_ARGS $PKGS
|
||||||
|
|
||||||
if [ "$ACTION" == "install" ]; then
|
|
||||||
if [ ${YUM} == "dnf" ]; then
|
|
||||||
# Make sure dnf won't autoremove these packages
|
|
||||||
dnf mark install $PKGS
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
$_xtrace
|
$_xtrace
|
||||||
|
|
||||||
# probably not the right place for this; but python-pip package on
|
# probably not the right place for this; but python-pip package on
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
set -eu
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -eq 22 ]]; then
|
|
||||||
# we need dnf mark command from dnf 1.1.1, which is pretty recent
|
|
||||||
dnf --refresh update -y dnf
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user