[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Rebuilds needed for Fedora 8



On Tue, Aug 21, 2007 at 11:06:25AM -0400, Jesse Keating wrote:
> > Is adding a ".1" that bad after a warning period which allows the
> > maintainers to do it in better ways?
> 
> Worth discussing.

If possible, please make the script a bit more efficient, in most
cases the release matches [1-9][0-9]*%{?dist}, so the next release can
be easily computed. At least, put .1 before %{?dist}.

rel=$1
suf=
if echo "$rel" | egrep -q '%{\?dist}$'; then
	rel=${1%\%\{?dist\}}
	suf='%{?dist}'
fi
if echo "$rel" | egrep -q '^[1-9][0-9]*$'; then
	rel=$[$rel + 1]
else
	rel="$rel.1"
fi
echo "$rel$suf"

-- 
Miroslav Lichvar


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]