Merge "Revert "Make sure dnf won't autoremove packages that we explicitly installed""

This commit is contained in:
Zuul 2024-11-11 03:49:42 +00:00 committed by Gerrit Code Review
commit fd8fae299e
2 changed files with 0 additions and 19 deletions

View File

@ -135,13 +135,6 @@ if [ -n "$WHITELIST" ]; then
# [1] https://bugzilla.redhat.com/show_bug.cgi?id=965567
set -o xtrace
${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
# probably not the right place for this; but python-pip package on

View File

@ -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