Skip to content

Commit

Permalink
1767351 - reset modules before the upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
xsuchy committed Mar 4, 2020
1 parent 4c33f3d commit 2057ac1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fedora-upgrade
Expand Up @@ -110,6 +110,13 @@ function EXCEPTION_reset_libgit2_module() {
fi
}

function EXCEPTION_reset_modules() {
continue_or_skip "\nGoing to reset Fedora Modules. (dnf module reset '*')"
if [ "$ANSWER" != "S" ] ; then
dnf module reset '*'
fi
}

function cleanup_cache() {
rm -rf /var/cache/yum/* /var/cache/dnf/* /var/cache/PackageKit/*
}
Expand Down Expand Up @@ -367,6 +374,9 @@ elif [ 0$TARGET_VERSION -eq 32 ]; then
echo "Checking if this is pre-release"
enable_updates=$(is_prerelease $TARGET_VERSION )

# https://bugzilla.redhat.com/show_bug.cgi?id=1767351
EXCEPTION_reset_modules

choose_upgrade_method
echo -e $1
ANSWER='XXX'
Expand Down

0 comments on commit 2057ac1

Please sign in to comment.