From: Pat Riehecky <riehecky at fnal.gov> --- return_disttag.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/return_disttag.sh b/return_disttag.sh index f7dc610..f850356 100755 --- a/return_disttag.sh +++ b/return_disttag.sh @@ -73,6 +73,9 @@ nvr1="${pkg%.src.rpm}" mydist="XXXjsdf9ur7qlkasdh4gygXXX" nvr2=$(rpm --define "dist $mydist" -q --specfile "SPECS/$packagename.spec" --qf '%{n}-%{v}-%{r}\n' 2>/dev/null | head -n 1) +# clean up SRPM, since it is only used for its name +rm -f ${nvr2} >/dev/null 2>&1 + #use our placeholder dist to split the nvr head=${nvr2%$mydist*} -- 1.7.1