Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 145532

Summary: versionator.eclass - get_after_major_version() doesn't work [patch]
Product: Gentoo Linux Reporter: David Grant <davidgrant>
Component: EclassesAssignee: Stephen Bennett (RETIRED) <spb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.