From 179aa31d418aa57d11614227436b94614c1bc10b Mon Sep 17 00:00:00 2001 From: Jon-Paul Sullivan Date: Tue, 11 Mar 2014 13:13:10 +0000 Subject: [PATCH] Fixup all occurrences of REPONAME for replacing '-' There was a single REPONAME variable missed in change 76679. Fix it up. Change-Id: Ibc6cd59cb3f3d949fd7679ee18d85c7574d9acd5 --- .../source-repositories/extra-data.d/98-source-repositories | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/source-repositories/extra-data.d/98-source-repositories b/elements/source-repositories/extra-data.d/98-source-repositories index 544351ef2..e74c9496c 100755 --- a/elements/source-repositories/extra-data.d/98-source-repositories +++ b/elements/source-repositories/extra-data.d/98-source-repositories @@ -46,7 +46,7 @@ function get_repos_for_element(){ CACHE_NAME=$(echo "${REPOTYPE}_${REPOLOCATION}" | sha1sum | awk '{ print $1 }' ) OLD_CACHE_PATH=${CACHE_BASE}/${CACHE_NAME} # Add the repo name to the sha1sum for readability - CACHE_NAME=${REPONAME//-/_}_${CACHE_NAME} + CACHE_NAME=${REPONAME//[^A-Za-z0-9]/_}_${CACHE_NAME} CACHE_PATH=${CACHE_BASE}/$CACHE_NAME # If the old cache name exists, move it to the new cache name if [ -e "$OLD_CACHE_PATH" ] ; then