Re: Helper variables like %{rhel} on CentOS

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



On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi <amyagi@xxxxxxxxx> wrote:
> On Wed, Jan 5, 2011 at 10:07 AM, Akemi Yagi <amyagi@xxxxxxxxx> wrote:
>> On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia <nkadel@xxxxxxxxx> wrote:
>>
>>> Hmmm.. You might befit from the portability of this approach
>>>
>>> %rhel           0%(/bin/rpm -q --f /etc/redhat-release -qf '%{VERSION}\n' )
>>>
>>> Notice that this now works with RHEL and CentOS, and the "\n" keeps
>>> certain programs historically happier with the commands having an EOL.
>>
>> Nice. Minor corrections  needed:
>>
>> -f => --f
>> -qf => --qf
>
> Sorry to spam the list again ... a correction of the correction needed :-)
>
> --f => -f
>
> So, it will be:
>
> %rhel           0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n' )
>
> Akemi

Gahhh. Proportional fonts in this mail interfaces. We hates it, yes,
we hates it!!!!

Good catch, though. But why use '%{VERSION}' when '%{version}' will serve?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux