Skip to content

Commit

Permalink
Add clean metadata for upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Mar 12, 2021
1 parent a64b759 commit 5b6066b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,9 @@ if ! is_package_installed 'epel-release'; then
install_package 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm' 'epel-release'
fi

# clean metadata added for upgrades (when the same package can be downloaded from another repo)
run_cmd yum -y clean metadata

run_cmd yum -y makecache fast

# --- Download packages ---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ if ! is_package_installed 'epel-release'; then
install_package 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm' 'epel-release'
fi

# clean metadata added for upgrades (when the same package can be downloaded from another repo)
run_cmd yum -y clean metadata

run_cmd yum -y makecache fast

# --- Download packages ---
Expand Down

0 comments on commit 5b6066b

Please sign in to comment.