From 33648c9b34880a1184ca48982518a16ecdf16105 Mon Sep 17 00:00:00 2001 From: Scott Little Date: Wed, 28 Oct 2020 12:00:34 -0400 Subject: [PATCH] build-iso failure due to missing repodata Build-iso started failing due to the lack of repodata in $MY_REPO/centos-repo/rt/Binary/ . The problem was traced back to generate-centos-repo.sh and an unintended modification of the dest_dir global variable. The unintended modification was due to the new function copy_with_backup failing to use 'local' on it's internal variables. Closes-bug: 1901920 Change-Id: If1c3928518552327af9e01a77b287849a1e3981b Signed-off-by: Scott Little --- toCOPY/generate-centos-repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toCOPY/generate-centos-repo.sh b/toCOPY/generate-centos-repo.sh index 882a81d9..a45503a5 100755 --- a/toCOPY/generate-centos-repo.sh +++ b/toCOPY/generate-centos-repo.sh @@ -385,9 +385,9 @@ process_lst_file () { } copy_with_backup () { - src_file="$1" - dest_dir="$2" - dest_file=${dest_dir}/$(basename ${src_file}) + local src_file="$1" + local dest_dir="$2" + local dest_file=${dest_dir}/$(basename ${src_file}) if [ ! -f "${src_file}" ]; then echo "source file '${src_file}' does not exist!"