diff --git a/return_disttag.sh b/return_disttag.sh index e1b86aa..0e06cce 100755 --- a/return_disttag.sh +++ b/return_disttag.sh @@ -124,7 +124,7 @@ SPEC=$(cd SPECS; ls *.spec) mydist="XXXjsdf9ur7qlkasdh4gygXXX" test_nvr=$(build_with_dist_scl "SPECS/${SPEC}" ${mydist}) -test_nodist=$(echo ${test_nvr} | sed -e 's/-[a-zA-Z0-9.+]*$//') +test_nodist=$(echo ${test_nvr} | sed -e 's/-[a-zA-Z0-9.+_]*$//') git_nodist=$(echo ${git_nvr} | sed -e 's/-[a-zA-Z0-9.+_]*$//') if [[ "${git_nodist}" != "${test_nodist}" ]]; then @@ -132,7 +132,7 @@ if [[ "${git_nodist}" != "${test_nodist}" ]]; then warn "Warning: Trying as a Software Collection" scl=$(echo ${git_nodist} |sed -e "s/-${test_nodist}//") test_nvr=$(build_with_dist_scl "SPECS/${SPEC}" ${mydist} ${scl}) - test_nodist=$(echo ${test_nvr} | sed -e 's/-[a-zA-Z0-9.+]*$//') + test_nodist=$(echo ${test_nvr} | sed -e 's/-[a-zA-Z0-9.+_]*$//') fi if [[ "${git_nodist}" != "${test_nodist}" ]]; then