[Mageia-sysadm] mgaversion and mgaver macros

Olivier Blin mageia at blino.org
Tue Apr 12 13:07:21 CEST 2011


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.

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

-- 
Olivier Blin - blino


More information about the Mageia-sysadm mailing list