package: use portage-9999 (and define pkg) in Package.ebuild_path doctest
authorW. Trevor King <wking@tremily.us>
Sun, 11 Nov 2012 21:44:19 +0000 (16:44 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 11 Nov 2012 21:44:19 +0000 (16:44 -0500)
pym/gentoolkit/package.py

index aa0012af48f049e34d388792547bc6d5e3f84e8b..83c9d48b535e7af9152a461e1f11ffcc07372958 100644 (file)
@@ -299,10 +299,11 @@ class Package(CPV):
                """Returns the complete path to the .ebuild file.
 
                Example usage:
+                       >>> pkg = Package('sys-apps/portage-9999')
                        >>> pkg.ebuild_path()
-                       '/usr/portage/sys-apps/portage/portage-2.1.6.13.ebuild'
+                       '/usr/portage/sys-apps/portage/portage-9999.ebuild'
                        >>> pkg.ebuild_path(in_vartree=True)
-                       '/var/db/pkg/sys-apps/portage-2.1.6.13/portage-2.1.6.13.ebuild'
+                       '/var/db/pkg/sys-apps/portage-9999/portage-9999.ebuild'
                """
 
                if in_vartree: