Fixup all occurrences of REPONAME for replacing '-'

There was a single REPONAME variable missed in change 76679.
Fix it up.

Change-Id: Ibc6cd59cb3f3d949fd7679ee18d85c7574d9acd5
This commit is contained in:
Jon-Paul Sullivan 2014-03-11 13:13:10 +00:00
parent ffdd57b8a5
commit 179aa31d41

View File

@ -46,7 +46,7 @@ function get_repos_for_element(){
CACHE_NAME=$(echo "${REPOTYPE}_${REPOLOCATION}" | sha1sum | awk '{ print $1 }' ) CACHE_NAME=$(echo "${REPOTYPE}_${REPOLOCATION}" | sha1sum | awk '{ print $1 }' )
OLD_CACHE_PATH=${CACHE_BASE}/${CACHE_NAME} OLD_CACHE_PATH=${CACHE_BASE}/${CACHE_NAME}
# Add the repo name to the sha1sum for readability # 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 CACHE_PATH=${CACHE_BASE}/$CACHE_NAME
# If the old cache name exists, move it to the new cache name # If the old cache name exists, move it to the new cache name
if [ -e "$OLD_CACHE_PATH" ] ; then if [ -e "$OLD_CACHE_PATH" ] ; then