Re: Rebuilds needed for Fedora 8

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux