Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=757854

--- Comment #10 from Kevin Kofler <[email protected]> 2011-12-01 22:23:12 
EST ---
> %global revision %(echo %{version} | sed 's/^.*\.\([^.]*\)$/\1/g')

We found that the backslashes need to be escaped, as in:

%global revision %(echo %{version} | sed 's/^.*\\.\\([^.]*\\)$/\\1/g')

This always takes the last component of the version. Alternatively, this also
works, assuming that the version has 3 components (it always takes the 3rd
component):

%global revision %(echo %{version} | cut -d. -f3)

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to