fix generate-cgcs-centos-repo.sh error if symbolic links in mirror dir
Change-Id: I1878006bddae117861477c8e0012125e0a60087a Closes-Bug: 1831702 Signed-off-by: Bin Yang <bin.yang@intel.com>
This commit is contained in:
parent
cac209d677
commit
4c63a93d25
@ -60,7 +60,7 @@ for t in "Binary" "Source" ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
mirror_content=$(mktemp -t centos-repo-XXXXXX)
|
mirror_content=$(mktemp -t centos-repo-XXXXXX)
|
||||||
find ${mirror_dir} -type f > ${mirror_content}
|
find -L ${mirror_dir} -type f > ${mirror_content}
|
||||||
|
|
||||||
for lst_file in ${rpm_lst_files} ; do
|
for lst_file in ${rpm_lst_files} ; do
|
||||||
grep -v "^#" ${lst_file_dir}/${lst_file} | while IFS="#" read rpmname extrafields; do
|
grep -v "^#" ${lst_file_dir}/${lst_file} | while IFS="#" read rpmname extrafields; do
|
||||||
|
Loading…
Reference in New Issue
Block a user