public inbox for gentoo-devhelp@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-devhelp] How do I get the major+minor version of a package?
@ 2013-05-30 11:06 Nikos Chantziaras
  2013-05-30 11:11 ` Justin
  0 siblings, 1 reply; 3+ messages in thread
From: Nikos Chantziaras @ 2013-05-30 11:06 UTC (permalink / raw
  To: gentoo-devhelp

Let's suppose that $PV is "2.5.1". How would I get the "2.5" in it in an 
ebuild?  I know about ${PV:0:3}, but this breaks if $PV is, say, 
"2.13.1".  In that case, I would get "2.1" instead of "2.13".

I've looked in the various eclasses if there's some utility function 
that get me the major and minor version, but can't find anything.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-07  5:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 11:06 [gentoo-devhelp] How do I get the major+minor version of a package? Nikos Chantziaras
2013-05-30 11:11 ` Justin
2013-06-07  5:03   ` [gentoo-devhelp] " Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox