[Mageia-sysadm] mgaversion and mgaver macros

Michael Scherer misc at zarb.org
Thu Apr 14 13:41:50 CEST 2011


Le mardi 12 avril 2011 à 13:07 +0200, Olivier Blin a écrit :
> Ahmad Samir <ahmadsamir3891 at gmail.com> writes:
> 
> > Hello,
> >
> > $ rpm --showrc | grep mgaver
> > -14: mgaver     1
> > -14: mgaversion %(perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)'
> > /etc/release)
> >
> > $ perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)' /etc/release
> > 0
> >
> >
> > this should be fixed before first release.
> 
> Or this should be dropped.

+1

> Please prefer using distro-name-agnostic macros.
> In this case, %distro_release (from product.id macros)

Could we have a warning, or something like that so we can do a smooth
migration ?


-- 
Michael Scherer



More information about the Mageia-sysadm mailing list