projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dfdbd3
)
package: use portage-9999 (and define pkg) in Package.ebuild_path doctest
author
W. Trevor King
<wking@tremily.us>
Sun, 11 Nov 2012 21:44:19 +0000
(16:44 -0500)
committer
W. Trevor King
<wking@tremily.us>
Sun, 11 Nov 2012 21:44:19 +0000
(16:44 -0500)
pym/gentoolkit/package.py
patch
|
blob
|
history
diff --git
a/pym/gentoolkit/package.py
b/pym/gentoolkit/package.py
index aa0012af48f049e34d388792547bc6d5e3f84e8b..83c9d48b535e7af9152a461e1f11ffcc07372958 100644
(file)
--- 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: