Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145532 - versionator.eclass - get_after_major_version() doesn't work [patch]
Summary: versionator.eclass - get_after_major_version() doesn't work [patch]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stephen Bennett (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-29 15:52 UTC by David Grant
Modified: 2006-08-30 09:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2006-08-29 15:52:01 UTC
get_after_major_version() doesn't work
Comment 1 David Grant 2006-08-29 15:55:51 UTC
Sorry, I'm having trouble attaching this for some reason.

--- /usr/portage/eclass/versionator.eclass.orig 2006-08-29 15:47:48.000000000 -0700
+++ /usr/portage/eclass/versionator.eclass  2006-08-29 15:48:02.000000000 -0700
@@ -152,7 +152,7 @@
 #     20040905    ->  (empty string)
 #     3.0c-r1     ->  0c-r1
 get_after_major_version() {
-   echo $(get_version_component_range 2- "${1:-PV}" )
+   echo $(get_version_component_range 2- "${1:-${PV}}" )
 }

 # Replace the $1th separator with $2 in $3 (defaults to $PV if $3 is not
Comment 2 Stephen Bennett (RETIRED) gentoo-dev 2006-08-30 09:14:56 UTC
In CVS; thanks.