From 0efd164e7ce96e4b86e7fe007dd3da58418a310a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 11 Nov 2012 16:44:19 -0500 Subject: [PATCH] package: use portage-9999 (and define pkg) in Package.ebuild_path doctest --- pym/gentoolkit/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.26.2