[Mageia-sysadm] mgaversion and mgaver macros

Ahmad Samir ahmadsamir3891 at gmail.com
Tue Apr 12 17:34:50 CEST 2011


On 12 April 2011 13:07, Olivier Blin <mageia at blino.org> wrote:
> 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

Personally, I don't mind. (At least it'll be just one macro instead of
mgaver/mgaversion).

-- 
Ahmad Samir


More information about the Mageia-sysadm mailing list