projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afb0700
)
avoid importing portage to improve performance
author
Marius Mauch
<genone@gentoo.org>
Sat, 15 Mar 2008 22:43:25 +0000
(22:43 -0000)
committer
Marius Mauch
<genone@gentoo.org>
Sat, 15 Mar 2008 22:43:25 +0000
(22:43 -0000)
svn path=/main/trunk/; revision=9470
bin/pkgname
patch
|
blob
|
history
diff --git
a/bin/pkgname
b/bin/pkgname
index 4c0dd6c949e7c5e4b318bb1e2400af54de513a45..1850d71a86c88494b2091f2add3bd74e6dd31910 100755
(executable)
--- a/
bin/pkgname
+++ b/
bin/pkgname
@@
-5,13
+5,13
@@
import sys, os
try:
- import portage
+ from portage.versions import pkgsplit
except ImportError:
from os import path as osp
sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
- import portage
+ from portage.versions import pkgsplit
-a=p
ortage.p
kgsplit(sys.argv[1])
+a=pkgsplit(sys.argv[1])
if a:
print a[0],a[1],a[2][1:]
sys.exit(0)