diff --git a/webbuild/webbuild-sudo b/webbuild/webbuild-sudo index ef39d1c..f42466b 100755 --- a/webbuild/webbuild-sudo +++ b/webbuild/webbuild-sudo @@ -44,8 +44,7 @@ if [ -r "$SPECFILE" ]; then # rm -f ${_tmpfile} ${_errtmpfile} # exit 254 # } -# SPECVERSION=`grep ^Version: ${_tmpfile} | sed "s|Version:[[:space:]]*||"` - SPECVERSION=`grep -c1 ^Version: ${SPECFILE} | sed "s|Version:[[:space:]]*||"` + SPECVERSION=`grep -m1 "^Version:" ${SPECFILE} | sed "s|Version:[[:space:]]*||"` BUILDROOT=$PACKAGE-root #`grep ^BuildRoot: ${_tmpfile} | sed "s|BuildRoot:[[:space:]]*||"` # SPECSETUP=`grep %setup ${_tmpfile} | sed "s|.*-n ||"`