2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-02 19:05:32 +00:00

postscripts: add --showduplicates to yum list (#2056)

"yum list" alone does NOT check the older packages available in the
yum repo. If we want to install a specific package version, the
--showduplicates option is required. As an example, with this patch,
we can now add a specific kernel package to otherpkgs.pkglist that is
older that the one available in the distro.
This commit is contained in:
thiell
2016-11-03 21:43:55 -07:00
committed by yangsong
parent 1e1c9bdaa4
commit fc15887f84

View File

@ -715,7 +715,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do
fi
if [ $hasyum -eq 1 ]; then
#use yum
result=`yum list $fn 2>&1`
result=`yum --showduplicates list $fn 2>&1`
if [ $? -eq 0 ]; then
rc=0
array_set_element repo_path $index $path