From: W. Trevor King Date: Sun, 11 Nov 2012 21:44:19 +0000 (-0500) Subject: package: use portage-9999 (and define pkg) in Package.ebuild_path doctest X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0efd164e7ce96e4b86e7fe007dd3da58418a310a;p=gentoolkit.git package: use portage-9999 (and define pkg) in Package.ebuild_path doctest --- diff --git a/pym/gentoolkit/package.py b/pym/gentoolkit/package.py index aa0012a..83c9d48 100644 --- a/pym/gentoolkit/package.py +++ b/pym/gentoolkit/package.py @@ -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: